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

tx-pool: rm constraint for PoolTransaction #10024

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

tcoratger
Copy link
Contributor

@tcoratger tcoratger commented Aug 2, 2024

Related #8668

cc @mattsse one more step

Copy link
Collaborator

@mattsse mattsse left a 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

Comment on lines +771 to +772
/// Define a method to convert from the `Pooled` type to `Self`
fn from_pooled(pooled: Self::Pooled) -> Self;
Copy link
Collaborator

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>;
Copy link
Collaborator

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

Copy link
Contributor Author

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

@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Aug 2, 2024
@mattsse mattsse added this pull request to the merge queue Aug 2, 2024
Merged via the queue into paradigmxyz:main with commit 054f8ff Aug 2, 2024
33 checks passed
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants