Returns how many blocks the best header is ahead of the current tip, or nullopt if the best header does not extend the tip.
Declared in <validation.h>
[[locks_excluded(0x7fbc8fcf9ef8), locks_excluded(0x7fbc96d926b8), locks_excluded(0x7fbcaf728128), locks_excluded(0x7fbc9e23f808)]]
std::optional<int>
BlocksAheadOfTip() const;
The number of blocks the best header is ahead of the tip, or std::nullopt.