Chainstate::DisconnectTip

Apply the effects of a block disconnection on the UTXO set and update the mempool.

Synopsis

Declared in <validation.h>

bool
DisconnectTip(
    BlockValidationState& state,
    DisconnectedBlockTransactions* disconnectpool);

Return Value

true if the tip was disconnected successfully.

Parameters

NameDescription
stateValidation state updated with the reason for any failure.
disconnectpoolCollects the transactions from the disconnected block for later reprocessing.