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

feat: use primitive transaction as PoolTransaction::Consensus #13086

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Dec 3, 2024

This PR updates the way tx pool handles Consensus transaction AT. Before it was being set to a recovered transaction making it tricky to define bounds. This PR changes it so we now specifiy just a primitive transaction type for PoolTransaction::Consensus. Methods which were earlier accepting/returning Self::Consensus now operate on RecoveredTx<Self::Consensus>

This allowed to relax bounds on EthPoolTransaction which now does not require anything from Consensus AT

Similar updates can be applied to Pooled transaction as well

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.

nice!

@mattsse mattsse added this pull request to the merge queue Dec 3, 2024
@mattsse mattsse added the A-sdk Related to reth's use as a library label Dec 3, 2024
Merged via the queue into main with commit 5724114 Dec 3, 2024
41 checks passed
@mattsse mattsse deleted the klkvr/pool-tx-handling branch December 3, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants