Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 858 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
bool ActivateBestChain(const Config &config, BlockValidationState &state, | bool ActivateBestChain(const Config &config, BlockValidationState &state, | ||||
std::shared_ptr<const CBlock> pblock = nullptr) | std::shared_ptr<const CBlock> pblock = nullptr) | ||||
EXCLUSIVE_LOCKS_REQUIRED(!m_chainstate_mutex) LOCKS_EXCLUDED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(!m_chainstate_mutex) LOCKS_EXCLUDED(cs_main); | ||||
bool AcceptBlock(const Config &config, | bool AcceptBlock(const Config &config, | ||||
const std::shared_ptr<const CBlock> &pblock, | const std::shared_ptr<const CBlock> &pblock, | ||||
BlockValidationState &state, bool fRequested, | BlockValidationState &state, bool fRequested, | ||||
const FlatFilePos *dbp, bool *fNewBlock) | const FlatFilePos *dbp, bool *fNewBlock, | ||||
bool fPostConsensusActive = false) | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
// Block (dis)connection on a given view: | // Block (dis)connection on a given view: | ||||
DisconnectResult DisconnectBlock(const CBlock &block, | DisconnectResult DisconnectBlock(const CBlock &block, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
CCoinsViewCache &view) | CCoinsViewCache &view) | ||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
bool ConnectBlock(const CBlock &block, BlockValidationState &state, | bool ConnectBlock(const CBlock &block, BlockValidationState &state, | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |