Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 931 Lines • ▼ Show 20 Lines | public: | ||||
/** Update the chain tip based on database information, i.e. CoinsTip()'s | /** Update the chain tip based on database information, i.e. CoinsTip()'s | ||||
* best block. */ | * best block. */ | ||||
bool LoadChainTip(const CChainParams &chainparams) | bool LoadChainTip(const CChainParams &chainparams) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
//! Dictates whether we need to flush the cache to disk or not. | //! Dictates whether we need to flush the cache to disk or not. | ||||
//! | //! | ||||
//! @return the state of the size of the coins cache. | //! @return the state of the size of the coins cache. | ||||
CoinsCacheSizeState GetCoinsCacheSizeState(const CTxMemPool &tx_pool) | CoinsCacheSizeState GetCoinsCacheSizeState(const CTxMemPool *tx_pool) | ||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
CoinsCacheSizeState GetCoinsCacheSizeState( | CoinsCacheSizeState GetCoinsCacheSizeState( | ||||
const CTxMemPool &tx_pool, size_t max_coins_cache_size_bytes, | const CTxMemPool *tx_pool, size_t max_coins_cache_size_bytes, | ||||
size_t max_mempool_size_bytes) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | size_t max_mempool_size_bytes) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
std::string ToString() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | std::string ToString() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
private: | private: | ||||
bool ActivateBestChainStep(const Config &config, | bool ActivateBestChainStep(const Config &config, | ||||
BlockValidationState &state, | BlockValidationState &state, | ||||
CBlockIndex *pindexMostWork, | CBlockIndex *pindexMostWork, | ||||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |