Chainstate::SetTargetBlockHash

Set target block for this chainstate using just a block hash. Useful when the block database has not been loaded yet.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fb95fa37a68), requires_capability(0x7fb96ac5e9c8), requires_capability(0x7fb96e9d51e8), requires_capability(0x7fb98748a858)]]
void
SetTargetBlockHash(uint256 block_hash);

Parameters

NameDescription
block_hashHash of the target block.