Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fd753c9bab8, 0x7fd753c9bb30), requires_capability(0x7fd74db5d588, 0x7fd74db5d600), requires_capability(0x7fd74ab5f5a8, 0x7fd74ab5f620), requires_capability(0x7fd73ea7a468, 0x7fd73ea7a4e0)]]
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.