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: Track DA cost in Op Pooled transactions #13806

Merged
merged 5 commits into from
Jan 18, 2025

Conversation

stevencartavia
Copy link
Contributor

should close #13795

pub struct OpPooledTransaction(EthPooledTransaction<OpTransactionSigned>);
pub struct OpPooledTransaction {
inner: EthPooledTransaction<OpTransactionSigned>,
da_cost: U256,
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah sorry I wasn't super clear in the issue but for #13757 we don't need cost but gas usage estimation, which should happen lazily, so we need a LazyLock for this instead

estimated_tx_compressed_size: LazyLock<u64>

@@ -296,7 +306,7 @@ where
/// See also [`TransactionValidator::validate_transaction`]
///
/// This behaves the same as [`EthTransactionValidator::validate_one`], but in addition, ensures
/// that the account has enough balance to cover the L1 gas cost.
/// that the account has enough balance to cover the L1 gas cost and DA cost.
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can undo the changes in validate now because da bytes is unrelated to this

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.

lgtm,

this requires a followup once we have the standalone flz calc available
also related #13757

FYI @meyer9

@mattsse mattsse marked this pull request as ready for review January 18, 2025 11:08
@mattsse mattsse added the A-op-reth Related to Optimism and op-reth label Jan 18, 2025
@mattsse mattsse enabled auto-merge January 18, 2025 11:19
@mattsse mattsse added this pull request to the merge queue Jan 18, 2025
Merged via the queue into paradigmxyz:main with commit 43f3822 Jan 18, 2025
43 checks passed
refcell pushed a commit to ethereum-optimism/op-reth that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Track DA cost in Op Pooled transactions
2 participants