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

Bug Fix eth_feeHistory - Issue-#4231 #5397

Merged
merged 11 commits into from
May 2, 2023
Merged

Conversation

gtebrean
Copy link
Contributor

PR description

Fix the eth_feeHistory response. Seems that more rewards, baseFeePerGas and gasUsedRatio are returned when highestBlock requested is lower than blockCount. This is due to the fact that for this case the range wasn't calculated properly and exceeded resolvedHighestBlockNumber with more than +1.

Fixed Issue(s)

#4231

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: George Tebrean <george@web3labs.com>
@github-actions
Copy link

github-actions bot commented Apr 27, 2023

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I have considered running ./gradlew acceptanceTestNonMainnet locally if my PR affects non-mainnet modules.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: George Tebrean <george@web3labs.com>
@gtebrean gtebrean requested a review from macfarla April 27, 2023 12:53
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
…sonrpc/internal/methods/EthFeeHistoryTest.java

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
…sonrpc/internal/methods/EthFeeHistoryTest.java

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
…sonrpc/internal/methods/EthFeeHistoryTest.java

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
…sonrpc/internal/methods/EthFeeHistoryTest.java

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla added the RPC label May 2, 2023
@macfarla macfarla enabled auto-merge (squash) May 2, 2023 00:54
@macfarla macfarla merged commit edfe189 into hyperledger:main May 2, 2023
elenduuche pushed a commit to elenduuche/besu that referenced this pull request Aug 16, 2023
* fix eth_feeHistory

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* fix eth_feeHistory

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: George Tebrean <george@web3labs.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants