-
Notifications
You must be signed in to change notification settings - Fork 6
Implement log filters #420
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
Signed-off-by: Alexandru Cihodaru <[email protected]>
alindima
left a comment
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.
Great work! Very thorough tests
| } | ||
| Poll::Ready(Some(Ok(new_blocks).to_rpc_result())) | ||
| } | ||
| // handled directly in get_filter_changes |
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.
IMO it'd be cleaner if we used the same pattern for all filter types. either implementing poll manually or using async functions for all
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.
Will do this in the last PR of the filters series. I already have the change locally.
Signed-off-by: Alexandru Cihodaru <[email protected]>
iulianbarbu
left a comment
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.
Very good work! Thanks 🚀
| // This can be optimized if we also submit the block number | ||
| // from subscribe_and_cache_new_blocks |
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.
Probably a similar block by hash will be done there as well to return the block number. I think the subscriptions return only hashes.
re-gius
left a comment
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.
LGTM - Great job with testing
Signed-off-by: Alexandru Cihodaru <[email protected]>
Signed-off-by: Alexandru Cihodaru <[email protected]>
Signed-off-by: Alexandru Cihodaru <[email protected]>
No description provided.