diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2023-12-21 17:24:07 -0500 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2024-04-26 13:31:28 -0400 |
commit | 5bc2077e8f592442b089affdf0b5795fbc053bb8 (patch) | |
tree | 43d51e83663cf460b4e064e45561fd4c736dc5c4 /src/kernel | |
parent | d5a631b9597e5029a5048d9b8ad84ea4536bbac0 (diff) | |
download | bitcoin-5bc2077e8f592442b089affdf0b5795fbc053bb8.tar.xz |
validation: allow to specify frequency for -checkblockindex
This makes it similar to -checkaddrman and -checkmempool, which
also allow to run the check occasionally instead of always / never.
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/chainstatemanager_opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/chainstatemanager_opts.h b/src/kernel/chainstatemanager_opts.h index de5f78494a..076841c3c9 100644 --- a/src/kernel/chainstatemanager_opts.h +++ b/src/kernel/chainstatemanager_opts.h @@ -33,7 +33,7 @@ namespace kernel { struct ChainstateManagerOpts { const CChainParams& chainparams; fs::path datadir; - std::optional<bool> check_block_index{}; + std::optional<int32_t> check_block_index{}; bool checkpoints_enabled{DEFAULT_CHECKPOINTS_ENABLED}; //! If set, it will override the minimum work we will assume exists on some valid chain. std::optional<arith_uint256> minimum_chain_work{}; |