mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Do not pass time getter to Chainstate helpers
This commit is contained in:
parent
002411dc53
commit
fa4ee53dca
5 changed files with 6 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue