28 const std::shared_ptr<const CBlock>& block,
Implement this to subscribe to events generated in validation and mempool.
void JumpOutOfIbd()
Toggle IsInitialBlockDownload from true to false.
static void BlockConnected(ChainstateRole role, CValidationInterface &obj, const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
ChainstateRole
This enum describes the various roles a specific Chainstate instance can take.
std::atomic< bool > m_cached_finished_ibd
Whether initial block download has ended and IsInitialBlockDownload should return false from now on...
The block chain is a tree shaped structure starting with the genesis block at the root...
bool IsInitialBlockDownload() const
Check whether we are doing an initial block download (synchronizing from disk or network) ...
void ResetIbd()
Reset the ibd cache to its initial state.
virtual void BlockConnected(ChainstateRole role, const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
Notifies listeners of a block being connected.
#define Assert(val)
Identity function.