go-header
go-header copied to clipboard
Metric to track effectiveness of header recency estimation
We introduced the notion of header recency, which just checks if the header is recent via isRecent func. In case of the current subjective header is not recent, we forcefully re-request a new head. We need to know its effectiveness by checking if blockTime+blocktime/2
is big enough not to cause unnecessary requests for the actual real head.