We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36c98d6 + 0f15ac3 commit 9f39b6aCopy full SHA for 9f39b6a
internal/snapshotter/snapshotter.go
@@ -304,7 +304,7 @@ func (s *SnapShotter) StartPeriodicPolling() {
304
305
// If the most recent run is far away from the current block number, we need to create a new snapshot
306
lastRunIsTooOld := false
307
- if blockNumber > run.BlockHeight+uint64(s.cfg.Global.Snapshots.BlockInterval) {
+ if run != nil && blockNumber > run.BlockHeight+uint64(s.cfg.Global.Snapshots.BlockInterval) {
308
lastRunIsTooOld = true
309
log.WithFields(log.Fields{
310
"run_id": run.ID,
0 commit comments