-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
tx-pool: rm constraint for PoolTransaction
#10024
Conversation
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 nice incremental change
/// Define a method to convert from the `Pooled` type to `Self` | ||
fn from_pooled(pooled: Self::Pooled) -> Self; |
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.
I think this is also a temporary, thing, because there can be a usecase where this conversion requires additional context, but this is a good solution for now
@@ -31,7 +31,7 @@ pub trait TransactionOrdering: Send + Sync + 'static { | |||
type PriorityValue: Ord + Clone + Default + fmt::Debug + Send + Sync; | |||
|
|||
/// The transaction type to determine the priority of. | |||
type Transaction: PoolTransaction; | |||
type Transaction: PoolTransaction<Pooled = PooledTransactionsElementEcRecovered>; |
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.
cool, this has the same effect but makes it easier to make progress, nice
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.
yes seems nice for now for both the comments
Related #8668
cc @mattsse one more step