5 #ifndef BITCOIN_NODE_CHAINSTATE_H 6 #define BITCOIN_NODE_CHAINSTATE_H 9 #include <validation.h> 73 #endif // BITCOIN_NODE_CHAINSTATE_H
ChainstateLoadResult VerifyLoadedChainstate(ChainstateManager &chainman, const ChainstateLoadOptions &options)
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
bool block_tree_db_in_memory
static constexpr int DEFAULT_CHECKLEVEL
Fatal error which should not prompt to reindex.
ChainstateLoadStatus
Chainstate load status.
std::function< bool()> check_interrupt
bool require_full_verification
Setting require_full_verification to true will require all checks at check_level (below) to succeed f...
std::function< void()> coins_error_cb
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
static const signed int DEFAULT_CHECKBLOCKS
Generic failure which reindexing may fix.
std::tuple< ChainstateLoadStatus, bilingual_str > ChainstateLoadResult
Chainstate load status code and optional error string.
ChainstateLoadResult LoadChainstate(ChainstateManager &chainman, const CacheSizes &cache_sizes, const ChainstateLoadOptions &options)
This sequence can have 4 types of outcomes: