internal/ethapi: twist the log

This commit is contained in:
Gary Rong 2025-06-23 13:58:02 +08:00
parent 0119765c35
commit 8bf6d6abe3

View file

@ -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