Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37b9021d8, 0x7ff37b902250), requires_capability(0x7ff375c48de8, 0x7ff375c48e60), requires_capability(0x7ff37e053c58, 0x7ff37e053cd0), requires_capability(0x7ff375934bb8, 0x7ff375934c30)]]
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.