-
Notifications
You must be signed in to change notification settings - Fork 74
feat(dumpblocks): fix range; get receipts by block #710
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the range calculation in the dumpblocks command and extends the GetReceipts method to support getting receipts by block with a fallback to getting them by transaction hash.
- Fixed off-by-one error in block range iteration logic
- Added support for
eth_getBlockReceiptsRPC method with fallback to existing transaction-based approach - Refactored receipt fetching into separate functions for better maintainability
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| cmd/dumpblocks/dumpblocks.go | Fixed range calculation to use inclusive end boundary and correct range advancement |
| util/util.go | Added block-based receipt fetching with fallback and refactored existing logic into separate function |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
* feat: adding command to parse batchl2 data * fix: issue with rpc flags * Update cmd/parsebatchl2data/parsebatchl2data.go Co-authored-by: Léo Vincent <28714795+leovct@users.noreply.github.com> * fix: flag_loader import * fix: lint * fix: err shadow * fix: handle errors from printTxData --------- Co-authored-by: Minh Vu <minhd_vu@yahoo.com> Co-authored-by: Léo Vincent <28714795+leovct@users.noreply.github.com> Co-authored-by: Minh Vu <mvu@polygon.technology>
closes https://github.com/0xPolygon/devtools/issues/418
utils.GetReceiptsmethod to get receipts by block, with a fallback to get them by tx