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(0x7fd753c9b2a8), requires_capability(0x7fd74db5cd78), requires_capability(0x7fd74ab5ed98), requires_capability(0x7fd73ea79c58)]]
void
SetTargetBlockHash(uint256 block_hash);

Parameters

NameDescription
block_hashHash of the target block.