Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f9513ab4918, 0x7f9513ab4990), requires_capability(0x7f9502c97988, 0x7f9502c97a00), requires_capability(0x7f95254496b8, 0x7f9525449730), requires_capability(0x7f95173ff998, 0x7f95173ffa10)]]
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.