From 8bf6d6abe37263a751c27a2400fd8aa2bf9afb4c Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Mon, 23 Jun 2025 13:58:02 +0800 Subject: [PATCH] internal/ethapi: twist the log --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 70aa22dafb..db0297ae5a 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1837,7 +1837,7 @@ func (api *DebugAPI) SetHead(number hexutil.Uint64) error { return errors.New("current header is not available") } if header.Number.Uint64() <= uint64(number) { - return errors.New("not allowed to rewind to a later block") + return errors.New("not allowed to rewind to a future block") } api.b.SetHead(uint64(number)) return nil