Skip to content

Commit 6da532e

Browse files
committed
EIP-2681: Transactions with nonce == 2^64-1 are invalid
1 parent 949bc84 commit 6da532e

File tree

4 files changed

+112
-35
lines changed

4 files changed

+112
-35
lines changed

TransactionTests/ttNonce/TransactionWithHighNonce64Minus1.json

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,53 @@
22
"TransactionWithHighNonce64Minus1" : {
33
"_info" : {
44
"comment" : "",
5-
"filling-rpc-server" : "evm version 1.10.13-unstable-291393c2",
6-
"filling-tool-version" : "retesteth-0.2.0-memory+commit.093d78f6.Linux.g++",
7-
"generatedTestHash" : "77b14731568f75023c39cc84b69b199cb89729365acca2b47667e5b6541616dd",
8-
"lllcversion" : "Version: 0.5.14-develop.2021.10.5+commit.401d5358.Linux.g++",
5+
"filling-rpc-server" : "evm version 1.10.13-unstable-33f28138-20211116",
6+
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f70a15d3.Linux.g++",
7+
"generatedTestHash" : "4dab12dc9ea42953292ee903b77393f8ae61358a6a2fe5333f1ca284f2968ae0",
8+
"lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang",
99
"source" : "src/TransactionTestsFiller/ttNonce/TransactionWithHighNonce64Minus1Filler.json",
10-
"sourceHash" : "aef38d4686eed705817fb306a7ff718960ad38c11cfbc245ffd9520737676689"
10+
"sourceHash" : "8206748e794a51284f5918884d0113e36ee132d52cf98d6a9b4ca420aecebc25"
1111
},
1212
"result" : {
1313
"Berlin" : {
14-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
15-
"intrinsicGas" : "0x5208",
16-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
14+
"exception" : "NonceMax",
15+
"intrinsicGas" : "0x5208"
1716
},
1817
"Byzantium" : {
19-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
20-
"intrinsicGas" : "0x5208",
21-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
18+
"exception" : "NonceMax",
19+
"intrinsicGas" : "0x5208"
2220
},
2321
"Constantinople" : {
24-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
25-
"intrinsicGas" : "0x5208",
26-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
22+
"exception" : "NonceMax",
23+
"intrinsicGas" : "0x5208"
2724
},
2825
"ConstantinopleFix" : {
29-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
30-
"intrinsicGas" : "0x5208",
31-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
26+
"exception" : "NonceMax",
27+
"intrinsicGas" : "0x5208"
3228
},
3329
"EIP150" : {
34-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
35-
"intrinsicGas" : "0x5208",
36-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
30+
"exception" : "NonceMax",
31+
"intrinsicGas" : "0x5208"
3732
},
3833
"EIP158" : {
39-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
40-
"intrinsicGas" : "0x5208",
41-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
34+
"exception" : "NonceMax",
35+
"intrinsicGas" : "0x5208"
4236
},
4337
"Frontier" : {
44-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
45-
"intrinsicGas" : "0x5208",
46-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
38+
"exception" : "NonceMax",
39+
"intrinsicGas" : "0x5208"
4740
},
4841
"Homestead" : {
49-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
50-
"intrinsicGas" : "0x5208",
51-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
42+
"exception" : "NonceMax",
43+
"intrinsicGas" : "0x5208"
5244
},
5345
"Istanbul" : {
54-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
55-
"intrinsicGas" : "0x5208",
56-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
46+
"exception" : "NonceMax",
47+
"intrinsicGas" : "0x5208"
5748
},
5849
"London" : {
59-
"hash" : "0xff46a9a2dec8abf0cbab16a9ff4b9c5466bb33670c38720bfe441cf3974c2337",
60-
"intrinsicGas" : "0x5208",
61-
"sender" : "0x93d7386c0a9f0a50d82ec70ef9580889ae4502b1"
50+
"exception" : "NonceMax",
51+
"intrinsicGas" : "0x5208"
6252
}
6353
},
6454
"txbytes" : "0xf86788ffffffffffffffff0182520894095e7baea6a6c7c4c2dfeb977efac326af552d8780801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a01fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"TransactionWithHighNonce64Minus2" : {
3+
"_info" : {
4+
"comment" : "",
5+
"filling-rpc-server" : "evm version 1.10.13-unstable-d719143b",
6+
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f70a15d3.Linux.g++",
7+
"generatedTestHash" : "7460328b7421a2ac0a904ee7d30990b4f81065dfbef6f866acf46e8d76516606",
8+
"lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang",
9+
"source" : "src/TransactionTestsFiller/ttNonce/TransactionWithHighNonce64Minus2Filler.json",
10+
"sourceHash" : "f8795a770f7ccf6fbd168b073af47ef523a983f9d75ffb442172fee7f5297cfe"
11+
},
12+
"result" : {
13+
"Berlin" : {
14+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
15+
"intrinsicGas" : "0x5208",
16+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
17+
},
18+
"Byzantium" : {
19+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
20+
"intrinsicGas" : "0x5208",
21+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
22+
},
23+
"Constantinople" : {
24+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
25+
"intrinsicGas" : "0x5208",
26+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
27+
},
28+
"ConstantinopleFix" : {
29+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
30+
"intrinsicGas" : "0x5208",
31+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
32+
},
33+
"EIP150" : {
34+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
35+
"intrinsicGas" : "0x5208",
36+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
37+
},
38+
"EIP158" : {
39+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
40+
"intrinsicGas" : "0x5208",
41+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
42+
},
43+
"Frontier" : {
44+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
45+
"intrinsicGas" : "0x5208",
46+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
47+
},
48+
"Homestead" : {
49+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
50+
"intrinsicGas" : "0x5208",
51+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
52+
},
53+
"Istanbul" : {
54+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
55+
"intrinsicGas" : "0x5208",
56+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
57+
},
58+
"London" : {
59+
"hash" : "0xf1c8d1fb7df452d50d11d4c94a4ebeecd62f3669c980fbe37c2b65895de2fa7c",
60+
"intrinsicGas" : "0x5208",
61+
"sender" : "0x254f592c3cf7cffd797c7e1322effa8a2671b6bb"
62+
}
63+
},
64+
"txbytes" : "0xf86788fffffffffffffffe0182520894095e7baea6a6c7c4c2dfeb977efac326af552d8780801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a01fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
65+
}
66+
}

src/TransactionTestsFiller/ttNonce/TransactionWithHighNonce64Minus1Filler.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{
44
"expectException" :
55
{
6+
">=Frontier": "NonceMax"
67
},
78
"transaction" :
89
{
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"TransactionWithHighNonce64Minus2" :
3+
{
4+
"expectException" :
5+
{
6+
},
7+
"transaction" :
8+
{
9+
"data" : "",
10+
"gasLimit" : "21000",
11+
"gasPrice" : "1",
12+
"nonce" : "18446744073709551614",
13+
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
14+
"value" : "0",
15+
"v" : "27",
16+
"r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353",
17+
"s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)