Skip to content

Commit

Permalink
consensus: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 17, 2024
1 parent 53a88af commit a6c30a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func validateHeader(s State, parentID types.BlockID, timestamp time.Time, nonce
if parentID != s.Index.ID {
return errors.New("wrong parent ID")
} else if timestamp.After(s.MaxFutureTimestamp(time.Now())) {
return ErrFutureBlock
return ErrFutureBlock
} else if timestamp.Before(s.medianTimestamp()) {
return errors.New("timestamp is too far in the past")
} else if nonce%s.NonceFactor() != 0 {
Expand Down

0 comments on commit a6c30a3

Please sign in to comment.