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

fix: ensure we can handle pending target for feeHistory #9904

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 30, 2024

towards #9903

according to the spec feeHistory also accepts the pending block.

this currently results in missing block error because we only support canonical blocks

this is a hotfix that maps pending to latest, and consider pending missing, this is also how geth behaves

https://github.com/ethereum/go-ethereum/blob/380688c636a654becc8f114438c2a5d93d2db032/eth/gasprice/feehistory.go#L187-L191

we can easily support this with some additional work and resolve the pending block manually:

#9903 (comment)

@mattsse mattsse added the C-bug An unexpected or incorrect behavior label Jul 30, 2024
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

hotfix makes sense, direction for proper support also makes sense

@emhane emhane added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit 65720c9 Jul 30, 2024
33 checks passed
@emhane emhane deleted the matt/fix-missing-pending-support branch July 30, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants