Skip to content

Commit

Permalink
bugfix: Errorf with no formatting directive
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 authored and wizeguyy committed Jan 25, 2023
1 parent 84b0e30 commit 19e51dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ func (sl *Slice) procfutureHeaders() {
func (sl *Slice) addfutureHeader(header *types.Header) error {
max := uint64(time.Now().Unix() + maxTimeFutureHeaders)
if header.Time() > max {
return fmt.Errorf("future block timestamp %v > allowed %v", header.Time, max)
return fmt.Errorf("future block timestamp %v > allowed %v", header.Time(), max)
}
if !sl.futureHeaders.Contains(header.Hash()) {
sl.futureHeaders.Add(header.Hash(), header)
Expand Down

0 comments on commit 19e51dc

Please sign in to comment.