Chainstate::PreciousBlock

Mark a block as precious and reorganize.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fbc8fb663c0), locks_excluded(0x7fbc8fb66498), requires_capability(0x7fbc96bfea30), locks_excluded(0x7fbc96bfeb08), requires_capability(0x7fbcaf5d5e40), locks_excluded(0x7fbcaf5d5f18), requires_capability(0x7fbc9e0dc610), locks_excluded(0x7fbc9e0dc6e8)]]
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.