-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(txpool): enriched pool transaction event #3653
Conversation
Codecov Report
... and 179 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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,
left suggestion re name
pending clippy
event: TransactionEvent, | ||
pool_event: PoolTransactionEvent<T>, |
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.
this could be a bit confusing at first, so I think we should add a few docs how these differ to PoolTransactionEvent
and TransactionEvent
still not quite happy with the name, perhaps we rename PoolTransactionEvent
to FullTransactionEvent
?
pub fn event(&self) -> &TransactionEvent { | ||
&self.1 | ||
} | ||
pub enum PoolTransactionEvent<T: PoolTransaction> { |
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.
This is way better than before
Description
Transform
PoolTransactionEvent
to enable emitted enriched data about the transaction that the event happened to.