[#Chainstate-SetTargetBlockHash]
= xref:Chainstate.adoc[Chainstate]::SetTargetBlockHash
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513ab4108), requires&lowbar;capability(0x7f9502c97178), requires&lowbar;capability(0x7f9525448ea8), requires&lowbar;capability(0x7f95173ff188)&rsqb;&rsqb;
void
SetTargetBlockHash(xref:uint256.adoc[uint256] block&lowbar;hash);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block&lowbar;hash*
| Hash of the target block&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
