[#Chainstate-SetTargetBlock] = xref:Chainstate.adoc[Chainstate]::SetTargetBlock :relfileprefix: ../ :mrdocs: Set target block for this chainstate. If null, chainstate will target the most‐work valid block. If non‐null chainstate will be a historic chainstate and target the specified block. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1ba83ca8), requires_capability(0x7f2e145638f8), requires_capability(0x7f2e373bcaa8), requires_capability(0x7f2e36e336f8)]] void SetTargetBlock(xref:CBlockIndex.adoc[CBlockIndex]* block); ---- == Parameters [cols="1,4"] |=== | Name| Description | *block* | The target block, or nullptr to target the most‐work valid block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#