Merge 891e4bf374 into merged_master (Bitcoin PR bitcoin/bitcoin#28339)

This commit is contained in:
ikripaka 2026-02-26 12:59:57 +00:00
commit 6bee2dd79d
No known key found for this signature in database
8 changed files with 73 additions and 19 deletions

View file

@ -24,7 +24,10 @@
namespace node {
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts)
{
if (auto value{args.GetBoolArg("-checkblockindex")}) opts.check_block_index = *value;
if (auto value{args.GetIntArg("-checkblockindex")}) {
// Interpret bare -checkblockindex argument as 1 instead of 0.
opts.check_block_index = args.GetArg("-checkblockindex")->empty() ? 1 : *value;
}
if (auto value{args.GetBoolArg("-checkpoints")}) opts.checkpoints_enabled = *value;