Chainstate::SetTargetBlock

Set target block for this chainstate. If null, chainstate will target the most-work valid block. If non-null chainstate will be a historic chainstate and target the specified block.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37b9018f8), requires_capability(0x7ff375c48508), requires_capability(0x7ff37e053378), requires_capability(0x7ff3759342d8)]]
void
SetTargetBlock(CBlockIndex* block);

Parameters

NameDescription
blockThe target block, or nullptr to target the most-work valid block.