Chainstate::PreciousBlock

Mark a block as precious and reorganize.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37b9023a0), locks_excluded(0x7ff37b902478), requires_capability(0x7ff375c48fb0), locks_excluded(0x7ff375c49088), requires_capability(0x7ff37e053e20), locks_excluded(0x7ff37e053ef8), requires_capability(0x7ff375934d80), locks_excluded(0x7ff375934e58)]]
bool
PreciousBlock(
    BlockValidationState& state,
    CBlockIndex* pindex);

Description

May not be called in a validationinterface callback.

Return Value

true unless a system error occurred.

Parameters

NameDescription
stateValidation state updated with the reason for any failure.
pindexBlock index entry of the block to mark as precious.