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: add info tx types #1793

Merged
merged 1 commit into from
Dec 13, 2024
Merged

feat: add info tx types #1793

merged 1 commit into from
Dec 13, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Dec 13, 2024

upstream's reth's TransactionMeta type

and moves the TxInfo type to consensus from rpc.

these two types are almost identical, but info has optional fields because this is primarily used in rpc where the block context is optional.

naming is a bit horrible, but we can break this if we can come up with a better way to deal with this, perhaps introducing BlockContext or something similar

@mattsse mattsse requested a review from klkvr December 13, 2024 14:27
@mattsse mattsse enabled auto-merge (squash) December 13, 2024 14:28
block_number: self.block_number,
// We don't know the base fee of the block when we're constructing this from
// `Transaction`
base_fee: None,
Copy link
Member

Choose a reason for hiding this comment

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

should it take base_fee as an argument?

Copy link
Member Author

Choose a reason for hiding this comment

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

we set this via the additional builder fn: into().with_base_fee()

@mattsse mattsse merged commit 354a1a4 into main Dec 13, 2024
26 checks passed
@mattsse mattsse deleted the matt/add-meta-info-types branch December 13, 2024 14:36
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