Skip to content
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

eth/gasprice: fix eth_feeHistory blobGasRatio #31246

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

jamesstanleystewart
Copy link
Contributor

This change divides BlobGasUsed by MaxBlobGasPerBlock instead of MaxBlobsPerBlock. Dividing by MaxBlobsPerBlock
meant the blobGasUsedRatio was an incorrect large number. This bug was introduced by a typo here

Fixes #31245

Copy link
Contributor

@fjl fjl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@lightclient lightclient merged commit 2585776 into ethereum:master Feb 26, 2025
2 of 4 checks passed
@lightclient lightclient added this to the 1.15.4 milestone Feb 26, 2025
rjl493456442 pushed a commit that referenced this pull request Feb 27, 2025
Follow on to #31246. Adds a sanity check in the test to make sure the
ratio value never goes over 1. Would have avoided the issue in #31245.
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Mar 5, 2025
This change divides BlobGasUsed by MaxBlobGasPerBlock instead of
MaxBlobsPerBlock. Dividing by MaxBlobsPerBlock
meant the blobGasUsedRatio was an incorrect large number. This bug was
introduced by a typo
[here](ethereum@e6f3ce7#diff-3357b2399699d7cf954c543cbfb02ff442eb24491e55f5e813e3cc85829b3e8dR110)

Fixes ethereum#31245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eth_feeHistory blob gas used ratio error
4 participants