-
Notifications
You must be signed in to change notification settings - Fork 21.1k
miner, core, core/txpool: implement EIP 7825 - Transaction Gas Limit Cap #31824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
af879b0
core/vm: implement EIP 7825 - Transaction Gas Limit Cap
jwasinger e2420ab
core, miner: polish
rjl493456442 ccf3020
core, miner: add isOsaka field
rjl493456442 aa182ba
remove noop change to legacy pool
jwasinger b6256ef
core: move tx gas limit check to state transition
lightclient d751bc0
params: move constant
MariusVanDerWijden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,17 +28,18 @@ const ( | |
MaxGasLimit uint64 = 0x7fffffffffffffff // Maximum the gas limit (2^63-1). | ||
GenesisGasLimit uint64 = 4712388 // Gas limit of the Genesis block. | ||
|
||
MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis. | ||
ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction. | ||
SloadGas uint64 = 50 // Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added. | ||
CallValueTransferGas uint64 = 9000 // Paid for CALL when the value transfer is non-zero. | ||
CallNewAccountGas uint64 = 25000 // Paid for CALL when the destination address didn't exist prior. | ||
TxGas uint64 = 21000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions. | ||
TxGasContractCreation uint64 = 53000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions. | ||
TxDataZeroGas uint64 = 4 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions. | ||
QuadCoeffDiv uint64 = 512 // Divisor for the quadratic particle of the memory cost equation. | ||
LogDataGas uint64 = 8 // Per byte in a LOG* operation's data. | ||
CallStipend uint64 = 2300 // Free gas given at beginning of call. | ||
MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis. | ||
ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction. | ||
SloadGas uint64 = 50 // Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added. | ||
CallValueTransferGas uint64 = 9000 // Paid for CALL when the value transfer is non-zero. | ||
CallNewAccountGas uint64 = 25000 // Paid for CALL when the destination address didn't exist prior. | ||
TxGas uint64 = 21000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions. | ||
MaxTxGas uint64 = 30_000_000 // eip-7825 maximum transaction gas limit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This constant should not be in the middle of the list here, but have its own paragraph. |
||
TxGasContractCreation uint64 = 53000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions. | ||
TxDataZeroGas uint64 = 4 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions. | ||
QuadCoeffDiv uint64 = 512 // Divisor for the quadratic particle of the memory cost equation. | ||
LogDataGas uint64 = 8 // Per byte in a LOG* operation's data. | ||
CallStipend uint64 = 2300 // Free gas given at beginning of call. | ||
|
||
Keccak256Gas uint64 = 30 // Once per KECCAK256 operation. | ||
Keccak256WordGas uint64 = 6 // Once per word of the KECCAK256 operation's data. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.