diff options
author | MacroFake <falke.marco@gmail.com> | 2022-08-05 15:12:58 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-05 14:59:15 +0200 |
commit | eeee5ada23f2a71d245671556b6ecfdaabfeddf4 (patch) | |
tree | 3b2c3c56611816254a8a80eb2defca00d3421fde /src/validation.h | |
parent | fa3be799fe951a7ea9b4de78d5a907c6db71eeb8 (diff) |
Make adjusted time type safe
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h index ec9043ad7a..c0e6213247 100644 --- a/src/validation.h +++ b/src/validation.h @@ -336,7 +336,7 @@ bool TestBlockValidity(BlockValidationState& state, CChainState& chainstate, const CBlock& block, CBlockIndex* pindexPrev, - const std::function<int64_t()>& adjusted_time_callback, + const std::function<NodeClock::time_point()>& adjusted_time_callback, bool fCheckPOW = true, bool fCheckMerkleRoot = true) EXCLUSIVE_LOCKS_REQUIRED(cs_main); @@ -840,7 +840,7 @@ private: const CChainParams m_chainparams; - const std::function<int64_t()> m_adjusted_time_callback; + const std::function<NodeClock::time_point()> m_adjusted_time_callback; //! Internal helper for ActivateSnapshot(). [[nodiscard]] bool PopulateAndValidateSnapshot( |