core: post-Amsterdam, don't subtract tx gas limit from GasPool before starting execution#34668
Open
jwasinger wants to merge 1 commit intoethereum:bal-devnet-3from
Open
Conversation
… starting execution
Member
|
I don't think this is correct in principle tbh. We might want to change the test case instead |
Contributor
Author
|
I think it is correct, although it's confusing. We've changed the tx validity condition in 8037 s.t. we no longer require the entire gas limit of the transaction to be covered by the remaining gas in the block. Now, we have to execute the tx and determine the tx contribution towards block fullness by its gas used vector and the contribution to the bottleneck resource. |
Contributor
Author
|
One way we could keep the existing gas pool somewhat more intact is to add a rule to 8037 that in order to include a tx in a block, |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
It fixes the failing
block_2d_gas_boundary_exact_fit.jsoncases when I run withgo test.It feels like the concept of the gas pool as it exists now has some friction with 8037. Instead of "take gas from the pool, execute a transaction, return the remaining gas to the pool", it's now "execute a transaction, see if the gas used allows it to fit into the block, and then accumulate the total gas used in both dimensions etc".