node::ChainstateLoadOptions

Options controlling how the chainstate is loaded and verified.

Synopsis

Declared in <node/chainstate.h>

struct ChainstateLoadOptions;

Data Members

NameDescription
check_blocks Number of recent blocks to verify at startup.
check_level Thoroughness level of the startup block checks.
coins_db_in_memory Whether to keep the coins (UTXO) database in memory.
coins_error_cb Callback invoked when the coins database reports an error.
mempool Mempool to attach to the loaded chainstate, if any.
prune Whether the node is running in prune mode.
require_full_verification Setting require_full_verification to true will require all checks at check_level (below) to succeed for loading to succeed. Setting it to false will skip checks if cache is not big enough to run them, so may be helpful for running with a small cache.
wipe_chainstate_db Whether to wipe and rebuild the chainstate database from genesis.