Skip to content

feat: Track DA cost in Op Pooled transactions#13806

Merged
mattsse merged 5 commits intoparadigmxyz:mainfrom
stevencartavia:track-DA-cost
Jan 18, 2025
Merged

feat: Track DA cost in Op Pooled transactions#13806
mattsse merged 5 commits intoparadigmxyz:mainfrom
stevencartavia:track-DA-cost

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>

///
/// 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
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 22, 2026
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
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