Skip to content

Commit d751bc0

Browse files
params: move constant
1 parent b6256ef commit d751bc0

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

params/protocol_params.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@ const (
2828
MaxGasLimit uint64 = 0x7fffffffffffffff // Maximum the gas limit (2^63-1).
2929
GenesisGasLimit uint64 = 4712388 // Gas limit of the Genesis block.
3030

31-
MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis.
32-
ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction.
33-
SloadGas uint64 = 50 // Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
34-
CallValueTransferGas uint64 = 9000 // Paid for CALL when the value transfer is non-zero.
35-
CallNewAccountGas uint64 = 25000 // Paid for CALL when the destination address didn't exist prior.
36-
TxGas uint64 = 21000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions.
37-
MaxTxGas uint64 = 30_000_000 // eip-7825 maximum transaction gas limit
38-
TxGasContractCreation uint64 = 53000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions.
39-
TxDataZeroGas uint64 = 4 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions.
40-
QuadCoeffDiv uint64 = 512 // Divisor for the quadratic particle of the memory cost equation.
41-
LogDataGas uint64 = 8 // Per byte in a LOG* operation's data.
42-
CallStipend uint64 = 2300 // Free gas given at beginning of call.
31+
MaxTxGas uint64 = 30_000_000 // Maximum transaction gas limit after eip-7825.
32+
33+
MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis.
34+
ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction.
35+
SloadGas uint64 = 50 // Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added.
36+
CallValueTransferGas uint64 = 9000 // Paid for CALL when the value transfer is non-zero.
37+
CallNewAccountGas uint64 = 25000 // Paid for CALL when the destination address didn't exist prior.
38+
TxGas uint64 = 21000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions.
39+
TxGasContractCreation uint64 = 53000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions.
40+
TxDataZeroGas uint64 = 4 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions.
41+
QuadCoeffDiv uint64 = 512 // Divisor for the quadratic particle of the memory cost equation.
42+
LogDataGas uint64 = 8 // Per byte in a LOG* operation's data.
43+
CallStipend uint64 = 2300 // Free gas given at beginning of call.
4344

4445
Keccak256Gas uint64 = 30 // Once per KECCAK256 operation.
4546
Keccak256WordGas uint64 = 6 // Once per word of the KECCAK256 operation's data.

0 commit comments

Comments
 (0)