Bitcoin Core  24.99.0
P2P Digital Currency
chainstatemanager_opts.h
Go to the documentation of this file.
1 // Copyright (c) 2022 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H
6 #define BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H
7 
8 #include <util/time.h>
9 
10 #include <cstdint>
11 #include <functional>
12 
13 class CChainParams;
14 
15 namespace kernel {
16 
24  const std::function<NodeClock::time_point()> adjusted_time_callback{nullptr};
25 };
26 
27 } // namespace kernel
28 
29 #endif // BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition: chainparams.h:70
std::chrono::time_point< NodeClock > time_point
Definition: time.h:19
An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options...
const std::function< NodeClock::time_point()> adjusted_time_callback