Make adjusted time type safe

This commit is contained in:
MacroFake committed 2022-08-05 14:59:15 +02:00
1 parent fa3be799fe
commit eeee5ada23
8 files changed
+19 -16

No files matched your search

+3 -1
View File
@@ -5,6 +5,8 @@
#ifndef BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H
#define BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H
#include <util/time.h>
#include <cstdint>
#include <functional>
@@ -19,7 +21,7 @@ namespace kernel {
*/
struct ChainstateManagerOpts {
const CChainParams& chainparams;
const std::function<int64_t()> adjusted_time_callback{nullptr};
const std::function<NodeClock::time_point()> adjusted_time_callback{nullptr};
};
} // namespace kernel