Implement EIP-2681: Limit account nonce to 2^64-1#827
Implement EIP-2681: Limit account nonce to 2^64-1#827axic wants to merge 1 commit intoethereum:masterfrom
Conversation
|
|
||
| \begin{description} | ||
| \item[nonce]\linkdest{tx_nonce}{} A scalar value equal to the number of transactions sent by the sender; formally $T_{\mathrm{n}}$. | ||
| \item[nonce]\linkdest{tx_nonce}{} A 64-bit scalar value equal to the number of transactions sent by the sender; formally $T_{\mathrm{n}}$. |
There was a problem hiding this comment.
Perhaps the "64-bit" mention here is not entirely correct, as it is serialised via RLP, so it has no fixed size. However since the recipient field below states "160-bit address" I decided to include it.
Potentially the more clear way is to include these restrictions in the validation sections, which means the address should be just a scalar here, and a new rule would need to be added.
|
Equations (13) and (17) say that the nonce is a 256-bit word. Should they be changed too? |
|
Good point @acoglio. I think (13) is worth changing as that already mentions "types" (such as However not sure about (17). |
Fixes #813. Please note that this applies from genesis, and geth implements it now.
I tried to implement this and I think I found the correct place for the external transaction validation. However I have no good idea where to describe the rules for
CREATE/CREATE2.