ethereum / execution-specs

Specification for the Execution Layer. Tracking network upgrades.
Creative Commons Zero v1.0 Universal
825 stars 231 forks source link

Transaction's `nonce` should be of type `U64` #986

Open SamWilsn opened 1 month ago

SamWilsn commented 1 month ago

Because of EIP-2671, the nonce of a transaction is limited in size to fit in a U64. We currently use a U256:

https://github.com/ethereum/execution-specs/blob/fcd12750edd4443a91f138728689a1d0a503a7c1/src/ethereum/cancun/transactions.py#L37

richardgreg commented 3 weeks ago

Should the change apply to every instance of U256 in the repo?