aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2019-08-14 20:53:21 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-08-14 20:53:21 +0800
commitc2c4c9f1e5f887058285c1299d250899fe0f7d89 (patch)
tree75bf202494ff70905f0c67e56b0840e615979c1e /params
parent44c8b9ad373dd99d4a92d6e5de63a7e7354bd850 (diff)
downloadgo-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar.gz
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar.bz2
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar.lz
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar.xz
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.tar.zst
go-tangerine-c2c4c9f1e5f887058285c1299d250899fe0f7d89.zip
core, light, params: implement eip2028 (#19931)
* core, light, params: implement eip2028 * core, light: address comments * core: address comments * tests: disable Istanbul tx tests (until updated) * core: address comment
Diffstat (limited to 'params')
-rw-r--r--params/protocol_params.go27
1 files changed, 14 insertions, 13 deletions
diff --git a/params/protocol_params.go b/params/protocol_params.go
index 943788be8..3022b700d 100644
--- a/params/protocol_params.go
+++ b/params/protocol_params.go
@@ -55,19 +55,20 @@ const (
JumpdestGas uint64 = 1 // Once per JUMPDEST operation.
EpochDuration uint64 = 30000 // Duration between proof-of-work epochs.
- CreateDataGas uint64 = 200 //
- CallCreateDepth uint64 = 1024 // Maximum depth of call/create stack.
- ExpGas uint64 = 10 // Once per EXP instruction
- LogGas uint64 = 375 // Per LOG* operation.
- CopyGas uint64 = 3 //
- StackLimit uint64 = 1024 // Maximum size of VM stack allowed.
- TierStepGas uint64 = 0 // Once per operation, for a selection of them.
- LogTopicGas uint64 = 375 // Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas.
- CreateGas uint64 = 32000 // Once per CREATE operation & contract-creation transaction.
- Create2Gas uint64 = 32000 // Once per CREATE2 operation
- SelfdestructRefundGas uint64 = 24000 // Refunded following a selfdestruct operation.
- MemoryGas uint64 = 3 // Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL.
- TxDataNonZeroGas uint64 = 68 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
+ CreateDataGas uint64 = 200 //
+ CallCreateDepth uint64 = 1024 // Maximum depth of call/create stack.
+ ExpGas uint64 = 10 // Once per EXP instruction
+ LogGas uint64 = 375 // Per LOG* operation.
+ CopyGas uint64 = 3 //
+ StackLimit uint64 = 1024 // Maximum size of VM stack allowed.
+ TierStepGas uint64 = 0 // Once per operation, for a selection of them.
+ LogTopicGas uint64 = 375 // Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas.
+ CreateGas uint64 = 32000 // Once per CREATE operation & contract-creation transaction.
+ Create2Gas uint64 = 32000 // Once per CREATE2 operation
+ SelfdestructRefundGas uint64 = 24000 // Refunded following a selfdestruct operation.
+ MemoryGas uint64 = 3 // Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL.
+ TxDataNonZeroGasFrontier uint64 = 68 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
+ TxDataNonZeroGasEIP2028 uint64 = 16 // Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul)
// These have been changed during the course of the chain
CallGasFrontier uint64 = 40 // Once per CALL operation & message call transaction.