Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fb95fa38278, 0x7fb95fa382f0), requires_capability(0x7fb96ac5f1d8, 0x7fb96ac5f250), requires_capability(0x7fb96e9d59f8, 0x7fb96e9d5a70), requires_capability(0x7fb98748b068, 0x7fb98748b0e0)]]
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.