diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-26 12:59:48 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-10-18 14:11:48 +0200 |
commit | fa7c834b9f988fa7f2ace2d67b1628211b7819df (patch) | |
tree | a8c19c847f5b38b3660b1177a2ffbcf001fda151 /src/node | |
parent | fa43188d86288fa6666307a77c106c8f069ebdbe (diff) | |
download | bitcoin-fa7c834b9f988fa7f2ace2d67b1628211b7819df.tar.xz |
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).
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/chainstatemanager_args.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<bilingual_str> 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")}) { |