Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f2e1ba84588, 0x7f2e1ba84600), requires_capability(0x7f2e145641d8, 0x7f2e14564250), requires_capability(0x7f2e373bd388, 0x7f2e373bd400), requires_capability(0x7f2e36e33fd8, 0x7f2e36e34050)]]
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.