Skip to content

Commit 3929a10

Browse files
check if epoch is less than s.skipToEpoch
compares epoch to s.skipToEpoch with strict inequality. So, far we were checking less than or equal to, in which epoch 0 never gets verified. Fixes #2403
1 parent 91e7ffa commit 3929a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dot/state/epoch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ func (s *EpochState) SkipVerify(header *types.Header) (bool, error) {
507507
return false, err
508508
}
509509

510-
if epoch <= s.skipToEpoch {
510+
if epoch < s.skipToEpoch {
511511
return true, nil
512512
}
513513

0 commit comments

Comments
 (0)