Chainstate::DisconnectBlock

Undo the effects of a block on a given coins view.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f2e1ba84438), requires_capability(0x7f2e14564088), requires_capability(0x7f2e373bd238), requires_capability(0x7f2e36e33e88)]]
DisconnectResult
DisconnectBlock(
    CBlock const& block,
    CBlockIndex const* pindex,
    CCoinsViewCache& view);

Return Value

The result of disconnecting the block from the view.

Parameters

NameDescription
blockThe block to disconnect.
pindexBlock index entry corresponding to the block.
viewThe coins view to apply the disconnection to.