From 2079bf8fa6e5bb0d210180fad91c5822b4812122 Mon Sep 17 00:00:00 2001 From: Alex Pikme <30472093+reject-i@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:05:37 +0200 Subject: [PATCH] core: fix nonce overflow validation logic --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index bf5ac07636..14938661f6 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -319,7 +319,7 @@ func (st *stateTransition) preCheck() error { } else if stNonce > msgNonce { return fmt.Errorf("%w: address %v, tx: %d state: %d", ErrNonceTooLow, msg.From.Hex(), msgNonce, stNonce) - } else if stNonce+1 < stNonce { + } else if stNonce == math.MaxUint64 { return fmt.Errorf("%w: address %v, nonce: %d", ErrNonceMax, msg.From.Hex(), stNonce) }