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(0x7fd753e2f998), locks_excluded(0x7fd74dcf1048), locks_excluded(0x7fd74a14ec48), locks_excluded(0x7fd75e70fed8)]]
std::optional<int>
BlocksAheadOfTip() const;
The number of blocks the best header is ahead of the tip, or std::nullopt.