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: port reth pooled tx type #1767

Merged
merged 4 commits into from
Dec 7, 2024
Merged

feat: port reth pooled tx type #1767

merged 4 commits into from
Dec 7, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Dec 7, 2024

migrates the reth PooledTransactionElement type and renames it to just PooledTransaction.

@klkvr I assume we can simplify the decode/encode impls now

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, decode impls would just need to be same as TxEnvelope

wondering if it would also make sense to just make TxEnvelope generic over Eip4844 variant? then we can just do type PooledTransaction = TxEnvelope<TxEIp4844WithSidecar> and won't need to duplicate any code

@mattsse
Copy link
Member Author

mattsse commented Dec 7, 2024

hmm, good question.

The TxEnvelope is an integral part of the entire alloy client side API,

imo this extra type isn't too bad, and I'd rather have it separate

@mattsse mattsse force-pushed the matt/port-reth-pooled-tx branch from a2322a2 to d1ac383 Compare December 7, 2024 13:01
Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a nit

crates/consensus/src/transaction/pooled.rs Outdated Show resolved Hide resolved
mattsse and others added 2 commits December 7, 2024 14:03
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
@mattsse mattsse merged commit ae92049 into main Dec 7, 2024
26 checks passed
@mattsse mattsse deleted the matt/port-reth-pooled-tx branch December 7, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants