Skip to content

Commit

Permalink
comments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Mar 25, 2024
1 parent 51460a8 commit 3307b87
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions consensus/polybft/validators_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,6 @@ func (v *validatorsSnapshotCache) getLastCachedSnapshot(currentEpoch uint64,
}
}

if cachedSnapshot != nil && cachedSnapshot.Epoch > epochToQuery {
// if we have a snapshot in memory or db, but it's newer than the one we need
// then return nil, and just recalculate it from scratch
return nil, nil
}

return cachedSnapshot, nil
}

Expand Down

0 comments on commit 3307b87

Please sign in to comment.