From fa7c834b9f988fa7f2ace2d67b1628211b7819df Mon Sep 17 00:00:00 2001 From: MacroFake Date: Tue, 26 Jul 2022 12:59:48 +0200 Subject: Move ::fCheckBlockIndex into ChainstateManager This changes the flag for the bitcoin-chainstate executable. Previously it was false, now it is the chain's default value (still false for the main chain). --- src/node/chainstatemanager_args.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/node/chainstatemanager_args.cpp') diff --git a/src/node/chainstatemanager_args.cpp b/src/node/chainstatemanager_args.cpp index b9960eafdb..b0d929626b 100644 --- a/src/node/chainstatemanager_args.cpp +++ b/src/node/chainstatemanager_args.cpp @@ -19,6 +19,8 @@ namespace node { std::optional ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts) { + if (auto value{args.GetBoolArg("-checkblockindex")}) opts.check_block_index = *value; + if (auto value{args.GetBoolArg("-checkpoints")}) opts.checkpoints_enabled = *value; if (auto value{args.GetArg("-minimumchainwork")}) { -- cgit v1.2.3