CValidationInterface::BlockDisconnected

Notifies listeners of a block being disconnected Provides the block that was disconnected.

Synopsis

Declared in <validationinterface.h>

virtual
void
BlockDisconnected(
    std::shared_ptr<CBlock const> const& block,
    CBlockIndex const* pindex);

Description

Called on a background thread. Only called for the active chainstate, since background chainstates should never disconnect blocks.

Parameters

NameDescription
blockThe block that was disconnected.
pindexBlock index entry for the disconnected block.