diff --git a/sync/sync.go b/sync/sync.go index 9d7b78005..2cae4f451 100644 --- a/sync/sync.go +++ b/sync/sync.go @@ -376,8 +376,8 @@ func (s *Synchronizer) pollLatest(ctx context.Context, sem chan struct{}) { s.log.Warnw("Failed fetching latest block", "err", err) } else { s.highestBlockHeader.Store(highestBlock.Header) + s.bestBlockGauge.Set(float64(highestBlock.Header.Number)) } - s.bestBlockGauge.Set(float64(highestBlock.Header.Number)) }() default: }