You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: params/protocol_params.go
+18-19Lines changed: 18 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ var (
23
23
)
24
24
25
25
const (
26
-
GasLimitBoundDivisoruint64=1024// The bound divisor of the gas limit, used in update calculations.
27
-
MinGasLimituint64=5000// Minimum the gas limit may ever be.
26
+
GasLimitBoundDivisoruint64=1024// The bound divisor of the gas limit, used in update calculations.
27
+
MinGasLimituint64=5000// Minimum the gas limit may ever be.
28
28
MaxGasLimituint64=0x7fffffffffffffff// Maximum the gas limit (2^63-1).
29
-
GenesisGasLimituint64=4712388// Gas limit of the Genesis block.
29
+
GenesisGasLimituint64=4712388// Gas limit of the Genesis block.
30
30
XDCGenesisGasLimituint64=84000000
31
31
32
32
MaximumExtraDataSizeuint64=32// Maximum size extra data may be after Genesis.
@@ -50,23 +50,17 @@ const (
50
50
JumpdestGasuint64=1// Refunded gas, once per SSTORE operation if the zeroness changes to zero.
51
51
EpochDurationuint64=30000// Duration between proof-of-work epochs.
52
52
CallGasuint64=40// Once per CALL operation & message call transaction.
53
-
54
-
CreateDataGasuint64=200//
55
-
CallCreateDepthuint64=1024// Maximum depth of call/create stack.
56
-
ExpGasuint64=10// Once per EXP instruction
57
-
LogGasuint64=375// Per LOG* operation.
58
-
CopyGasuint64=3//
59
-
StackLimituint64=1024// Maximum size of VM stack allowed.
60
-
TierStepGasuint64=0// Once per operation, for a selection of them.
61
-
LogTopicGasuint64=375// Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas.
62
-
CreateGasuint64=32000// Once per CREATE operation & contract-creation transaction.
63
-
Create2Gasuint64=32000// Once per CREATE2 operation
64
-
SelfdestructRefundGasuint64=24000// Refunded following a selfdestruct operation.
65
-
MemoryGasuint64=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.
66
-
TxDataNonZeroGasFrontieruint64=68// Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
67
-
TxDataNonZeroGasEIP2028uint64=16// Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul)
68
-
53
+
CreateDataGasuint64=200//
54
+
CallCreateDepthuint64=1024// Maximum depth of call/create stack.
55
+
ExpGasuint64=10// Once per EXP instruction
56
+
LogGasuint64=375// Per LOG* operation.
57
+
CopyGasuint64=3//
58
+
StackLimituint64=1024// Maximum size of VM stack allowed.
59
+
TierStepGasuint64=0// Once per operation, for a selection of them.
60
+
LogTopicGasuint64=375// Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas.
61
+
CreateGasuint64=32000// Once per CREATE operation & contract-creation transaction.
69
62
SuicideRefundGasuint64=24000// Refunded following a suicide operation.
63
+
MemoryGasuint64=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.
70
64
TxDataNonZeroGasuint64=68// Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
71
65
72
66
MaxCodeSize=24576// Maximum bytecode to permit for a contract
@@ -110,6 +104,11 @@ const (
110
104
SstoreResetGasEIP2200uint64=5000// Once per SSTORE operation from clean non-zero to something else
111
105
SstoreClearsScheduleRefundEIP2200uint64=15000// Once per SSTORE operation for clearing an originally existing storage slot
112
106
107
+
Create2Gasuint64=32000// Once per CREATE2 operation
108
+
SelfdestructRefundGasuint64=24000// Refunded following a selfdestruct operation.
109
+
TxDataNonZeroGasFrontieruint64=68// Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
110
+
TxDataNonZeroGasEIP2028uint64=16// Per byte of non zero data attached to a transaction after EIP 2028 (part in Istanbul)
111
+
113
112
// These have been changed during the course of the chain
114
113
CallGasFrontieruint64=40// Once per CALL operation & message call transaction.
115
114
CallGasEIP150uint64=700// Static portion of gas for CALL-derivates after EIP 150 (Tangerine)
0 commit comments