mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 891e4bf374 into merged_master (Bitcoin PR bitcoin/bitcoin#28339)
This commit is contained in:
commit
6bee2dd79d
8 changed files with 73 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue