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

Commit

Permalink
Merge pull request #58 from ethereumjs/add-missing-istanbul-gas-costs
Browse files Browse the repository at this point in the history
Add missing Istanbul gas costs
  • Loading branch information
holgerd77 authored Aug 7, 2019
2 parents 9e624f8 + c335a19 commit 6bb78bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit 6bb78bb

Please sign in to comment.