Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 630 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* If a block header hasn't already been seen, call CheckBlockHeader on it, | * If a block header hasn't already been seen, call CheckBlockHeader on it, | ||||
* ensure that it doesn't descend from an invalid block, and then add it to | * ensure that it doesn't descend from an invalid block, and then add it to | ||||
* m_block_index. | * m_block_index. | ||||
*/ | */ | ||||
bool AcceptBlockHeader(const Config &config, const CBlockHeader &block, | bool AcceptBlockHeader(const Config &config, const CBlockHeader &block, | ||||
BlockValidationState &state, CBlockIndex **ppindex) | BlockValidationState &state, CBlockIndex **ppindex) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
~BlockManager() { Unload(); } | |||||
}; | }; | ||||
/** | /** | ||||
* A convenience class for constructing the CCoinsView* hierarchy used | * A convenience class for constructing the CCoinsView* hierarchy used | ||||
* to facilitate access to the UTXO set. | * to facilitate access to the UTXO set. | ||||
* | * | ||||
* This class consists of an arrangement of layered CCoinsView objects, | * This class consists of an arrangement of layered CCoinsView objects, | ||||
* preferring to store and retrieve coins in memory via `m_cacheview` but | * preferring to store and retrieve coins in memory via `m_cacheview` but | ||||
▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines |