Skip to content

Commit c9eae76

Browse files
committed
Update SSTORE gas cost and BNOT instead of NEG
1 parent ad2a75a commit c9eae76

9 files changed

+626
-246
lines changed

vmtests/tmp.json

Whitespace-only changes.

vmtests/vmArithmeticTest.json

Lines changed: 52 additions & 51 deletions
Large diffs are not rendered by default.

vmtests/vmBitwiseLogicOperationTest.json

Lines changed: 415 additions & 32 deletions
Large diffs are not rendered by default.

vmtests/vmBlockInfoTest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
2121
"value" : "1000000000000000000"
2222
},
23-
"gas" : "9798",
23+
"gas" : "9698",
2424
"out" : "0x",
2525
"post" : {
2626
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -63,7 +63,7 @@
6363
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
6464
"value" : "1000000000000000000"
6565
},
66-
"gas" : "9798",
66+
"gas" : "9698",
6767
"out" : "0x",
6868
"post" : {
6969
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -106,7 +106,7 @@
106106
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
107107
"value" : "1000000000000000000"
108108
},
109-
"gas" : "9798",
109+
"gas" : "9698",
110110
"out" : "0x",
111111
"post" : {
112112
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -191,7 +191,7 @@
191191
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
192192
"value" : "1000000000000000000"
193193
},
194-
"gas" : "9798",
194+
"gas" : "9698",
195195
"out" : "0x",
196196
"post" : {
197197
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -234,7 +234,7 @@
234234
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
235235
"value" : "1000000000000000000"
236236
},
237-
"gas" : "9798",
237+
"gas" : "9698",
238238
"out" : "0x",
239239
"post" : {
240240
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {

vmtests/vmEnvironmentalInfoTest.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
2121
"value" : "1000000000000000000"
2222
},
23-
"gas" : "99999999798",
23+
"gas" : "99999999698",
2424
"out" : "0x",
2525
"post" : {
2626
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -63,7 +63,7 @@
6363
"origin" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
6464
"value" : "1000000000000000000"
6565
},
66-
"gas" : "99999999798",
66+
"gas" : "99999999698",
6767
"out" : "0x",
6868
"post" : {
6969
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
@@ -155,7 +155,7 @@
155155
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
156156
"value" : "1000000000000000000"
157157
},
158-
"gas" : "99999999778",
158+
"gas" : "99999999678",
159159
"out" : "0x",
160160
"post" : {
161161
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -198,7 +198,7 @@
198198
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
199199
"value" : "1000000000000000000"
200200
},
201-
"gas" : "99999999756",
201+
"gas" : "99999999656",
202202
"out" : "0x",
203203
"post" : {
204204
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -241,7 +241,7 @@
241241
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
242242
"value" : "1000000000000000000"
243243
},
244-
"gas" : "99999999756",
244+
"gas" : "99999999656",
245245
"out" : "0x",
246246
"post" : {
247247
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -291,7 +291,7 @@
291291
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
292292
"value" : "1000000000000000000"
293293
},
294-
"gas" : "99999999792",
294+
"gas" : "99999999692",
295295
"out" : "0x",
296296
"post" : {
297297
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -334,7 +334,7 @@
334334
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
335335
"value" : "1000000000000000000"
336336
},
337-
"gas" : "99999999792",
337+
"gas" : "99999999692",
338338
"out" : "0x",
339339
"post" : {
340340
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -419,7 +419,7 @@
419419
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
420420
"value" : "1000000000000000000"
421421
},
422-
"gas" : "99999999797",
422+
"gas" : "99999999697",
423423
"out" : "0x",
424424
"post" : {
425425
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -462,7 +462,7 @@
462462
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
463463
"value" : "1000000000000000000"
464464
},
465-
"gas" : "99999999797",
465+
"gas" : "99999999697",
466466
"out" : "0x",
467467
"post" : {
468468
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -505,7 +505,7 @@
505505
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
506506
"value" : "1000000000000000000"
507507
},
508-
"gas" : "99999999797",
508+
"gas" : "99999999697",
509509
"out" : "0x",
510510
"post" : {
511511
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -548,7 +548,7 @@
548548
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
549549
"value" : "1000000000000000000"
550550
},
551-
"gas" : "99999999798",
551+
"gas" : "99999999698",
552552
"out" : "0x",
553553
"post" : {
554554
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -591,7 +591,7 @@
591591
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
592592
"value" : "1000000000000000000"
593593
},
594-
"gas" : "99999999798",
594+
"gas" : "99999999698",
595595
"out" : "0x",
596596
"post" : {
597597
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -634,7 +634,7 @@
634634
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
635635
"value" : "1000000000000000000"
636636
},
637-
"gas" : "99999999798",
637+
"gas" : "99999999698",
638638
"out" : "0x",
639639
"post" : {
640640
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -677,7 +677,7 @@
677677
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
678678
"value" : "1000000000000000000"
679679
},
680-
"gas" : "99999999798",
680+
"gas" : "99999999698",
681681
"out" : "0x",
682682
"post" : {
683683
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -720,7 +720,7 @@
720720
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
721721
"value" : "1000000000000000000"
722722
},
723-
"gas" : "99999999798",
723+
"gas" : "99999999698",
724724
"out" : "0x",
725725
"post" : {
726726
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -763,7 +763,7 @@
763763
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
764764
"value" : "1000000000000000000"
765765
},
766-
"gas" : "99999999792",
766+
"gas" : "99999999692",
767767
"out" : "0x",
768768
"post" : {
769769
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -806,7 +806,7 @@
806806
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
807807
"value" : "1000000000000000000"
808808
},
809-
"gas" : "99999999792",
809+
"gas" : "99999999692",
810810
"out" : "0x",
811811
"post" : {
812812
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -849,7 +849,7 @@
849849
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
850850
"value" : "1000000000000000000"
851851
},
852-
"gas" : "99999999798",
852+
"gas" : "99999999698",
853853
"out" : "0x",
854854
"post" : {
855855
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -892,7 +892,7 @@
892892
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
893893
"value" : "1000000000000000000"
894894
},
895-
"gas" : "99999999790",
895+
"gas" : "99999999690",
896896
"out" : "0x",
897897
"post" : {
898898
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -949,7 +949,7 @@
949949
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
950950
"value" : "1000000000000000000"
951951
},
952-
"gas" : "99999999795",
952+
"gas" : "99999999695",
953953
"out" : "0x",
954954
"post" : {
955955
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -1006,7 +1006,7 @@
10061006
"origin" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
10071007
"value" : "1000000000000000000"
10081008
},
1009-
"gas" : "99999999797",
1009+
"gas" : "99999999697",
10101010
"out" : "0x",
10111011
"post" : {
10121012
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -1063,7 +1063,7 @@
10631063
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
10641064
"value" : "1000000000000000000"
10651065
},
1066-
"gas" : "99999999798",
1066+
"gas" : "99999999698",
10671067
"out" : "0x",
10681068
"post" : {
10691069
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -1106,7 +1106,7 @@
11061106
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
11071107
"value" : "1000000000000000000"
11081108
},
1109-
"gas" : "99999999798",
1109+
"gas" : "99999999698",
11101110
"out" : "0x",
11111111
"post" : {
11121112
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {

0 commit comments

Comments
 (0)