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.
Declared in <validation.h>
[[requires_capability(0x7fb95fbcbc88), requires_capability(0x7fb96adf4c58), requires_capability(0x7fb96eb27dd8), requires_capability(0x7fb987169568)]]
void
RecalculateBestHeader();