15 assert(IsInitialBlockDownload());
20 Assert(IsInitialBlockDownload());
22 Assert(!IsInitialBlockDownload());
static void BlockConnected(CValidationInterface &obj, const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
Implement this to subscribe to events generated in validation.
virtual void BlockConnected(const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
Notifies listeners of a block being connected.
void JumpOutOfIbd()
Toggle IsInitialBlockDownload from true to false.
void ResetIbd()
Reset the ibd cache to its initial state.
std::atomic< bool > m_cached_finished_ibd
Whether this chainstate is undergoing initial block download.
The block chain is a tree shaped structure starting with the genesis block at the root...
#define Assert(val)
Identity function.