8000 refactor: move computeExcessBlobGas to gasLimitCalculator by macfarla · Pull Request #8711 · hyperledger/besu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: move computeExcessBlobGas to gasLimitCalculator #8711

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 13 commits into from
May 29, 2025

Conversation

macfarla
Copy link
Contributor
@macfarla macfarla commented May 28, 2025

Signed-off-by: Sally MacFarlane macfarla.github@gmail.com

PR description

Prep for EIP-7918, which needs to use FeeMarket and BlobSchedule in the computeExcessBlobGas calculation

  • move computeExcessBlobGas to gasLimitCalculator
  • refactor constructors
  • pass gasLimitCalculator around from the ProtocolSpecBuilder

Follows a little bit from #8658

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

macfarla added 7 commits May 28, 2025 20:33
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Copy link
Contributor
@Gabriel-Trintinalia Gabriel-Trintinalia left a comment

Choose a reason for hiding this comment

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

LGTM. I loved it!

macfarla added 2 commits May 30, 2025 07:51
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla enabled auto-merge (squash) May 29, 2025 21:52
@macfarla macfarla merged commit ea25615 into hyperledger:main May 29, 2025
63 of 78 checks passed
@macfarl
6A60
a macfarla deleted the gas-calc-refactor branch June 1, 2025 23:05
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.

2 participants
0