From 19e51dce39fe3a2172c1ac43c66293a49c86441a Mon Sep 17 00:00:00 2001 From: Jonathan Downing Date: Tue, 22 Nov 2022 11:47:44 -0600 Subject: [PATCH] bugfix: Errorf with no formatting directive --- core/slice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/slice.go b/core/slice.go index c4daa8ff8a..a63d8366d4 100644 --- a/core/slice.go +++ b/core/slice.go @@ -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)