Skip to content

feat(op-reth): add L2 blob transaction support and acceptance tests#152

Open
blockchaindevsh wants to merge 1 commit intosgt_rust_v2from
l2_blob
Open

feat(op-reth): add L2 blob transaction support and acceptance tests#152
blockchaindevsh wants to merge 1 commit intosgt_rust_v2from
l2_blob

Conversation

@blockchaindevsh
Copy link
Copy Markdown

@blockchaindevsh blockchaindevsh commented Apr 7, 2026

This PR ports l2 blob feature from op-geth to op-reth, the e2e tests are ported over to the acceptance tests.

Related PRs:

QuarkChain/reth#2

QuarkChain/evm#2

Add EIP-4844 blob transaction support to op-reth, enabling blob
transactions on L2 chains when l2BlobTime is configured.

Type system changes (op-alloy):
- Add Eip4844 variant to OpPooledTransaction, OpTxEnvelope,
  OpTypedTransaction, OpTxType, OpReceipt, OpReceiptEnvelope
- Add try_into_pooled_eip4844() for consensus-to-pooled conversion
- Update all exhaustive match arms across op-alloy, alloy-op-evm,
  op-reth crates

Transaction pool (op-reth):
- Implement take_blob(), validate_blob(), try_into_pooled_eip4844(),
  try_from_eip4844() for OpPooledTransaction
- Add TakeBlobSidecar trait for sidecar extraction in from_pooled()
- Add IntoPooledEip4844 trait for sidecar attachment
- Gate blob txs on is_l2_blob_active_at_timestamp in validator and
  node builder (no_eip4844 when inactive)

Payload builder (op-reth):
- Collect blob sidecars during block building via take_blob() on pool
  txs before consensus conversion
- Return sidecars in BlobsBundle in engine API getPayload response
- Remove unconditional blob tx rejection from payload validator

Block execution (alloy-op-evm):
- Track actual blob_gas_used separately from da_footprint_used
- Set blob_gas_used in block header from EIP-4844 tx blob gas

Chain config (op-reth):
- Parse l2BlobTime from genesis config.optimism
- Add is_l2_blob_active_at_timestamp() to OpHardforks
- Conditionally enable EIP-4844 in txpool validator

External dependencies:
- QuarkChain/reth l2_blob: add Eip4844 match arms in reth-codecs and
  reth-primitives-traits
- QuarkChain/evm l2_blob: add Eip4844 match arms in alloy-evm op
  module (FromRecoveredTx, FromTxWithEncoded for OpTxEnvelope)

Acceptance tests:
- Add l2blob test under op-acceptance-tests/tests/l2blob/
- Add l2blob gate in acceptance-tests.yaml
- Add justfile recipes for sgt and l2blob with op-reth env vars
- Add DACUrls support to devstack L2CLConfig for DAC server config
- Start DAC server in test init for blob upload/download verification

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@blockchaindevsh blockchaindevsh marked this pull request as ready for review April 14, 2026 10:24
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.

1 participant