Make adjusted time type safe

This commit is contained in:
MacroFake
2022-08-05 15:12:58 +02:00
parent fa3be799fe
commit eeee5ada23
8 changed files with 19 additions and 16 deletions

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