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

Get block by hash loop #717

Merged
merged 3 commits into from
Jan 22, 2025
Merged

Get block by hash loop #717

merged 3 commits into from
Jan 22, 2025

Conversation

acolytec3
Copy link
Collaborator

@acolytec3 acolytec3 commented Jan 22, 2025

Removes fallback pattern where getBlockByHash and getBlockByNumber would try to retrieve via number or hash respectively if the direct retrieval failed as this caused infinite looping searches for a block.

Fixes #716

@acolytec3 acolytec3 marked this pull request as ready for review January 22, 2025 18:55
Copy link
Collaborator

@ScottyPoi ScottyPoi left a comment

Choose a reason for hiding this comment

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

LGTM

@ScottyPoi ScottyPoi merged commit 8b4d60c into master Jan 22, 2025
5 checks passed
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.getBlockByHash goes into infinite loop if block not found
2 participants