diff options
author | Carl Dong <contact@carldong.me> | 2021-09-22 15:36:10 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-07 14:48:49 -0500 |
commit | 05441c2dc5f60e2025476d8ec94c9025032d118c (patch) | |
tree | 50585cd5303a9adb3af83dfc73a2e6405400f396 /src/node/chainstate.h | |
parent | 2414ebc18b8bebf79c47e58a4293d0fc6420a811 (diff) | |
download | bitcoin-05441c2dc5f60e2025476d8ec94c9025032d118c.tar.xz |
node/chainstate: Decouple from GetTime
...instead pass in a std::function<int64_t()>
Note that the static_cast is needed (apparently) for the compiler to
know which overloaded GetTime to choose.
Diffstat (limited to 'src/node/chainstate.h')
-rw-r--r-- | src/node/chainstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/chainstate.h b/src/node/chainstate.h index 84a86a082b..3c950409d3 100644 --- a/src/node/chainstate.h +++ b/src/node/chainstate.h @@ -74,6 +74,7 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage bool fReindexChainState, const CChainParams& chainparams, unsigned int check_blocks, - unsigned int check_level); + unsigned int check_level, + std::function<int64_t()> get_unix_time_seconds); #endif // BITCOIN_NODE_CHAINSTATE_H |