[#ChainstateManager-RecalculateBestHeader]
= xref:ChainstateManager.adoc[ChainstateManager]::RecalculateBestHeader
:relfileprefix: ../
:mrdocs:

If, due to invalidation &sol; reconsideration of blocks, the previous best header is no longer valid &sol; guaranteed to be the most&hyphen;work header in our block&hyphen;index not known to be invalid, recalculate it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513c48648), requires&lowbar;capability(0x7f9502de9de8), requires&lowbar;capability(0x7f950b21c5b8), requires&lowbar;capability(0x7f9514bf65a8)&rsqb;&rsqb;
void
RecalculateBestHeader();
----


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