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

chore: more work on filter #1468

Merged
merged 3 commits into from
Feb 22, 2023
Merged

chore: more work on filter #1468

merged 3 commits into from
Feb 22, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 20, 2023

impl remaining filter changes

realized progress is blocked until we can fetch logs.

would like to merge this as is

@mattsse mattsse added the A-rpc Related to the RPC implementation label Feb 20, 2023
@mattsse mattsse requested a review from rkrasiuk February 22, 2023 11:51
@mattsse mattsse marked this pull request as ready for review February 22, 2023 11:52
@mattsse mattsse requested a review from gakonst as a code owner February 22, 2023 11:52
let address_filter = FilteredParams::address_filter(&filter.address);
let topics_filter = FilteredParams::topics_filter(&topics);

for block_number in from_block..=to_block {
Copy link
Member

Choose a reason for hiding this comment

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

{
self.append_matching_block_logs(&mut logs, &filter_params, block);

// TODO size check
Copy link
Member

Choose a reason for hiding this comment

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

is this left for follow up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, can't check number of logs yet.

@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2023

Codecov Report

Merging #1468 (c4e2357) into main (c168ef4) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #1468      +/-   ##
==========================================
- Coverage   75.96%   75.94%   -0.02%     
==========================================
  Files         358      358              
  Lines       42689    42686       -3     
==========================================
- Hits        32428    32420       -8     
- Misses      10261    10266       +5     
Flag Coverage Δ
integration-tests 21.87% <0.00%> (+0.03%) ⬆️
unit-tests 70.39% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
crates/rpc/rpc-api/src/eth_filter.rs 0.00% <ø> (ø)
crates/rpc/rpc/src/eth/filter.rs 0.00% <0.00%> (ø)
crates/net/discv4/src/proto.rs 89.66% <0.00%> (-3.13%) ⬇️
crates/net/network/src/manager.rs 52.31% <0.00%> (-0.19%) ⬇️
crates/net/eth-wire/src/p2pstream.rs 79.41% <0.00%> (-0.18%) ⬇️
crates/net/downloaders/src/headers/task.rs 83.67% <0.00%> (ø)
crates/net/network/src/session/mod.rs 77.94% <0.00%> (+1.35%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mattsse mattsse merged commit 44e1d13 into main Feb 22, 2023
@mattsse mattsse deleted the matt/work-on-filter branch February 22, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants