-
Notifications
You must be signed in to change notification settings - Fork 180
fix(api): make the address param in eth filter spec optional #6140
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
WalkthroughEthGetLogs filter address became optional: Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant R as RPC Server
participant H as EthGetLogs Handler
participant P as EthFilterSpec Parser
participant M as Log Matcher
C->>R: eth_getLogs({ address?, topics, ... })
R->>H: Dispatch request
H->>P: Parse EthFilterSpec
alt address omitted (None)
Note right of P #DDEBF7: address = None (wildcard)
else address provided & non-empty
Note right of P #E6F4EA: address = Some(list) (explicit match)
else address provided & empty
Note right of P #FFF4E6: address = Some([]) (no matches)
end
H->>M: Match logs with parsed spec
alt None (wildcard)
M-->>H: Match any address
else Some(list)
M-->>H: Match listed addresses
else Some([])
M-->>H: No matches
end
H-->>R: Logs result
R-->>C: Response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
081e209
to
659a403
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
CHANGELOG.md
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: cargo-publish-dry-run
- GitHub Check: Build Ubuntu
- GitHub Check: Build MacOS
- GitHub Check: tests-release
- GitHub Check: All lint checks
- GitHub Check: tests
- GitHub Check: Build forest binaries on Linux AMD64
5559ee1
to
ebac6f9
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
CHANGELOG.md
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: Build Ubuntu
- GitHub Check: Build MacOS
- GitHub Check: cargo-publish-dry-run
- GitHub Check: tests-release
- GitHub Check: tests
- GitHub Check: Build forest binaries on Linux AMD64
- GitHub Check: All lint checks
ebac6f9
to
d5295b8
Compare
Summary of changes
Changes introduced in this pull request:
EthFilterSpec
address as optional field so theEthGetLogs
API can accept address as None.ethgetLogs
snapshotReference issue to close (if applicable)
Closes #6134
Other information and links
Change checklist
Summary by CodeRabbit
New Features
Bug Fixes
Tests / Chores