Skip to content

Commit

Permalink
check if epoch is less than s.skipToEpoch (#2503)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kishansagathiya authored May 5, 2022
1 parent 368f8b6 commit ea95ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/state/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func (s *EpochState) SkipVerify(header *types.Header) (bool, error) {
return false, err
}

if epoch <= s.skipToEpoch {
if epoch < s.skipToEpoch {
return true, nil
}

Expand Down

0 comments on commit ea95ffd

Please sign in to comment.