-
Notifications
You must be signed in to change notification settings - Fork 470
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
feat: support parity_pendingTransactions #451
Conversation
4594e72
to
f41991a
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.
looks good! I've left couple of improvements suggestions, let me know wdyt.
|
||
/// Filter for pending transactions (only openethereum/Parity) | ||
#[derive(Clone, Default, Serialize)] | ||
pub struct ParityPendingTransactionFilter { |
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.
Could you please add ::builder()
function to make it easy to create builder struct without importing the type?
impl ParityPendingTransactionFilter {
pub fn builder() -> ParityPendingTransactionFilterBuilder {
Default::default()
}
}
@tomusdrw Addressed all feedback and learnt a few things, thank you! I also updated the test to use the example transaction from the parity docs |
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.
looks awesome, thanks!
Adding support for
parity_pendingTransactions
. Implements #440Applying a pending transaction filter is blocked by openethereum/openethereum#159. However, omitting a filter gives a full list of pending transactions as expected. This has been tested with a synced openethereum node.
Would love to get some feedback!