EIP-6188: Nonce Cap
Caps the nonce at 2^64-2
|Authors||Gavin John (@Pandapip1)|
Table of Contents
This EIP caps the nonce at
2^64-2, reserving it for contracts with unusual behavior, as defined in other EIPs.
This EIP is not terribly useful on its own, as it adds additional computation without any useful side effects. However, it can be used by other EIPs.
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119 and RFC 8174.
The nonce of a transaction originating from an EOA MUST be less than
2^64-2. If the nonce is either
2^64-2, the transaction MUST be invalid.
If a nonce would be incremented to
CREATE2, it is instead set to
2^64-1 is reserved for alias or other special contracts.
Capping a nonce allows for contracts with special properties to be created, with their functionality based on their contract code. As such, only one nonce needs to be reserved.
This EIP requires a protocol upgrade, since it modifies consensus rules. The further restriction of nonce should not have an effect on accounts, as reaching a nonce of
2^64-2 is unfeasible.
As it is not feasible for contract accounts to get to the nonce limit, any potential problems with opcodes that depend on the value of an account’s nonce can be safely ignored.
Copyright and related rights waived via CC0.
Please cite this document as:
Gavin John (@Pandapip1), "EIP-6188: Nonce Cap [DRAFT]," Ethereum Improvement Proposals, no. 6188, December 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-6188.