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(0x7f2e1ba83d78), requires_capability(0x7f2e145639c8), requires_capability(0x7f2e373bcb78), requires_capability(0x7f2e36e337c8)]]
void
SetTargetBlockHash(uint256 block_hash);

Parameters

NameDescription
block_hashHash of the target block.