Bitcoin Core  22.99.0
P2P Digital Currency
Namespaces | Enumerations | Functions
chainstate.h File Reference
#include <cstdint>
#include <functional>
#include <optional>
Include dependency graph for chainstate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Consensus
 Transaction validation functions.
 
 node
 

Enumerations

enum  node::ChainstateLoadingError {
  node::ChainstateLoadingError::ERROR_LOADING_BLOCK_DB, node::ChainstateLoadingError::ERROR_BAD_GENESIS_BLOCK, node::ChainstateLoadingError::ERROR_PRUNED_NEEDS_REINDEX, node::ChainstateLoadingError::ERROR_LOAD_GENESIS_BLOCK_FAILED,
  node::ChainstateLoadingError::ERROR_CHAINSTATE_UPGRADE_FAILED, node::ChainstateLoadingError::ERROR_REPLAYBLOCKS_FAILED, node::ChainstateLoadingError::ERROR_LOADCHAINTIP_FAILED, node::ChainstateLoadingError::ERROR_GENERIC_BLOCKDB_OPEN_FAILED,
  node::ChainstateLoadingError::ERROR_BLOCKS_WITNESS_INSUFFICIENTLY_VALIDATED, node::ChainstateLoadingError::SHUTDOWN_PROBED
}
 
enum  node::ChainstateLoadVerifyError { node::ChainstateLoadVerifyError::ERROR_BLOCK_FROM_FUTURE, node::ChainstateLoadVerifyError::ERROR_CORRUPTED_BLOCK_DB, node::ChainstateLoadVerifyError::ERROR_GENERIC_FAILURE }
 

Functions

std::optional< ChainstateLoadingError > node::LoadChainstate (bool fReset, ChainstateManager &chainman, CTxMemPool *mempool, bool fPruneMode, const Consensus::Params &consensus_params, bool fReindexChainState, int64_t nBlockTreeDBCache, int64_t nCoinDBCache, int64_t nCoinCacheUsage, bool block_tree_db_in_memory, bool coins_db_in_memory, std::function< bool()> shutdown_requested=nullptr, std::function< void()> coins_error_cb=nullptr)
 This sequence can have 4 types of outcomes: More...
 
std::optional< ChainstateLoadVerifyError > node::VerifyLoadedChainstate (ChainstateManager &chainman, bool fReset, bool fReindexChainState, const Consensus::Params &consensus_params, unsigned int check_blocks, unsigned int check_level, std::function< int64_t()> get_unix_time_seconds)