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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

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

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.

Track DA cost in Op Pooled transactions
2 participants