aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-05-18 18:31:19 +0200
committerMacroFake <falke.marco@gmail.com>2022-05-18 18:44:04 +0200
commitfa4ee53dca5ccf1b87f019f372ffc10528add943 (patch)
tree4ca3b355f22078aebc9cb08cac03df96cc2e90b1 /src/init.cpp
parent002411dc53753b52fef645484258e8baf41585a1 (diff)
downloadbitcoin-fa4ee53dca5ccf1b87f019f372ffc10528add943.tar.xz
Do not pass time getter to Chainstate helpers
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index e180a2b5cd..cf1cd704a1 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1504,8 +1504,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
fReindexChainState,
chainparams.GetConsensus(),
check_blocks,
- args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL),
- /*get_unix_time_seconds=*/static_cast<int64_t(*)()>(GetTime));
+ args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL));
} catch (const std::exception& e) {
LogPrintf("%s\n", e.what());
maybe_verify_error = ChainstateLoadVerifyError::ERROR_GENERIC_FAILURE;