mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core: fix nonce overflow validation logic
This commit is contained in:
parent
695c1445ab
commit
2079bf8fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue