Skip to content

Commit

Permalink
Fix segfault on failed latest block fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Oct 9, 2023
1 parent 12f9a19 commit ed8ef1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand Down

0 comments on commit ed8ef1c

Please sign in to comment.