Chainstate::TargetBlock

Return target block which chainstate tip is expected to reach, if this is a historic chainstate being used to validate a snapshot, or null if chainstate targets the most-work block.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fbc8fb65848), requires_capability(0x7fbc96bfdeb8), requires_capability(0x7fbcaf5d52c8), requires_capability(0x7fbc9e0dba98)]]
CBlockIndex const*
TargetBlock() const;

Return Value

The target block index, or nullptr if the chainstate targets the most-work block.