Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Add missing Istanbul gas costs #58

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/hardforks/chainstart.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
}
},
"gasPrices": {
"base": {
"v": 2,
"d": "Gas base cost, used e.g. for ChainID opcode (Istanbul)"
},
"tierStep": {
"v": [0, 2, 3, 5, 8, 10, 20],
"d": "Once per operation, for a selection of them"
Expand Down
8 changes: 8 additions & 0 deletions src/hardforks/istanbul.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
},
"gasConfig": {},
"gasPrices": {
"blake2bRound": {
"v": 1,
"d": "Gas cost per round for the Blake2b F precompile"
},
"ecAdd": {
"v": 150,
"d": "Gas costs for curve addition precompile"
Expand All @@ -22,6 +26,10 @@
"ecPairingWord": {
"v": 34000,
"d": "Gas costs regarding curve pairing precompile input length"
},
"txDataNonZero": {
"v": 16,
"d": "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"
}
},
"vm": {},
Expand Down