Chainstate::DisconnectTip

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fbc8fb661f8, 0x7fbc8fb66270), requires_capability(0x7fbc96bfe868, 0x7fbc96bfe8e0), requires_capability(0x7fbcaf5d5c78, 0x7fbcaf5d5cf0), requires_capability(0x7fbc9e0dc448, 0x7fbc9e0dc4c0)]]
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.