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

[Constantinople] Add Constantinople SSTORE gas/refund prices (EIP1283) #27

Merged
merged 1 commit into from
Oct 11, 2018
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
31 changes: 30 additions & 1 deletion hardforks/constantinople.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,36 @@
"status": "Draft"
},
"gasConfig": {},
"gasPrices": {},
"gasPrices": {
"netSstoreNoopGas": {
"v": 200,
"d": "Once per SSTORE operation if the value doesn't change"
},
"netSstoreInitGas": {
"v": 20000,
"d": "Once per SSTORE operation from clean zero"
},
"netSstoreCleanGas": {
"v": 5000,
"d": "Once per SSTORE operation from clean non-zero"
},
"netSstoreDirtyGas": {
"v": 200,
"d": "Once per SSTORE operation from dirty"
},
"netSstoreClearRefund": {
"v": 15000,
"d": "Once per SSTORE operation for clearing an originally existing storage slot"
},
"netSstoreResetRefund": {
"v": 4800,
"d": "Once per SSTORE operation for resetting to the original non-zero value"
},
"netSstoreResetClearRefund": {
"v": 19800,
"d": "Once per SSTORE operation for resetting to the original zero value"
}
},
"vm": {},
"pow": {
"minerReward": {
Expand Down
1 change: 1 addition & 0 deletions tests/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ tape('[Common]: Parameter access', function (t) {

st.equal(c.param('pow', 'minerReward', 'chainstart'), '5000000000000000000', 'Should return correct value for chain start')
st.equal(c.param('pow', 'minerReward', 'byzantium'), '3000000000000000000', 'Should reflect HF update changes')
st.equal(c.param('gasPrices', 'netSstoreNoopGas', 'constantinople'), 200, 'Should return updated sstore gas prices for constantinople')

st.end()
})
Expand Down