Chainstate::InvalidBlockFound

Record that a block was found to be invalid and update fork-warning state.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37b9033a0), requires_capability(0x7ff375c49fb0), requires_capability(0x7ff37e054e20), requires_capability(0x7ff375935d80)]]
void
InvalidBlockFound(
    CBlockIndex* pindex,
    BlockValidationState const& state);

Parameters

NameDescription
pindexBlock index entry of the invalid block.
stateValidation state describing why the block is invalid.