diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-08-19 19:39:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 19:39:38 +0800 |
commit | 3bb9b49afb17ae4e66f52adba359670078883dcb (patch) | |
tree | 37d70e5a3c7765f2bf47345970a103cc0ed4e7a6 /params | |
parent | 9dfca5df4b0e36826526f4ee11cf3c2561eb33c6 (diff) | |
download | go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar.gz go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar.bz2 go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar.lz go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar.xz go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.tar.zst go-tangerine-3bb9b49afb17ae4e66f52adba359670078883dcb.zip |
core/vm, params: implement EIP2200, SSTORE optimizations (#19964)
* core/vm, params: implement EIP2200, SSTORE optimizations
* core/vm, params: switch EIP2200 to Wei's version
Diffstat (limited to 'params')
-rw-r--r-- | params/protocol_params.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/params/protocol_params.go b/params/protocol_params.go index 3022b700d..11b858a61 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -52,6 +52,15 @@ const ( NetSstoreResetRefund uint64 = 4800 // Once per SSTORE operation for resetting to the original non-zero value NetSstoreResetClearRefund uint64 = 19800 // Once per SSTORE operation for resetting to the original zero value + SstoreSentryGasEIP2200 uint64 = 2300 // Minimum gas required to be present for an SSTORE call, not consumed + SstoreNoopGasEIP2200 uint64 = 800 // Once per SSTORE operation if the value doesn't change. + SstoreDirtyGasEIP2200 uint64 = 800 // Once per SSTORE operation if a dirty value is changed. + SstoreInitGasEIP2200 uint64 = 20000 // Once per SSTORE operation from clean zero to non-zero + SstoreInitRefundEIP2200 uint64 = 19200 // Once per SSTORE operation for resetting to the original zero value + SstoreCleanGasEIP2200 uint64 = 5000 // Once per SSTORE operation from clean non-zero to something else + SstoreCleanRefundEIP2200 uint64 = 4200 // Once per SSTORE operation for resetting to the original non-zero value + SstoreClearRefundEIP2200 uint64 = 15000 // Once per SSTORE operation for clearing an originally existing storage slot + JumpdestGas uint64 = 1 // Once per JUMPDEST operation. EpochDuration uint64 = 30000 // Duration between proof-of-work epochs. |