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

Return target block which chainstate tip is expected to reach, if this is a historic chainstate being used to validate a snapshot, or null if chainstate targets the most&hyphen;work block&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513ab3f68), requires&lowbar;capability(0x7f9502c96fd8), requires&lowbar;capability(0x7f9525448d08), requires&lowbar;capability(0x7f95173fefe8)&rsqb;&rsqb;
xref:CBlockIndex.adoc[CBlockIndex] const*
TargetBlock() const;
----

== Return Value

The target block index, or nullptr if the chainstate targets the most&hyphen;work block&period;


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