Bitcoin ABC  0.26.3
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
 
 node
 

Enumerations

enum class  node::ChainstateLoadingError {
  node::ERROR_UPGRADING_BLOCK_DB , node::ERROR_LOADING_BLOCK_DB , node::ERROR_BAD_GENESIS_BLOCK , node::ERROR_PRUNED_NEEDS_REINDEX ,
  node::ERROR_LOAD_GENESIS_BLOCK_FAILED , node::ERROR_CHAINSTATE_UPGRADE_FAILED , node::ERROR_REPLAYBLOCKS_FAILED , node::ERROR_LOADCHAINTIP_FAILED ,
  node::ERROR_GENERIC_BLOCKDB_OPEN_FAILED , node::SHUTDOWN_PROBED
}
 
enum class  node::ChainstateLoadVerifyError { node::ERROR_BLOCK_FROM_FUTURE , node::ERROR_CORRUPTED_BLOCK_DB , node::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 Config &config, unsigned int check_blocks, unsigned int check_level, std::function< int64_t()> get_unix_time_seconds)