-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
crates/optimism/node/src/txpool.rs
Outdated
pub struct OpPooledTransaction(EthPooledTransaction<OpTransactionSigned>); | ||
pub struct OpPooledTransaction { | ||
inner: EthPooledTransaction<OpTransactionSigned>, | ||
da_cost: U256, |
There was a problem hiding this comment.
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>
crates/optimism/node/src/txpool.rs
Outdated
@@ -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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Matthias Seitz <[email protected]>
should close #13795