[#ChainstateManager-RecalculateBestHeader] = xref:ChainstateManager.adoc[ChainstateManager]::RecalculateBestHeader :relfileprefix: ../ :mrdocs: If, due to invalidation / reconsideration of blocks, the previous best header is no longer valid / guaranteed to be the most‐work header in our block‐index not known to be invalid, recalculate it. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1bc182e8), requires_capability(0x7f2e146b6638), requires_capability(0x7f2e298fba08), requires_capability(0x7f2e360b9168)]] void RecalculateBestHeader(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#