Skip to content

Trace Optimism post-exec transactions - #92

Merged
sduchesneau merged 3 commits into
release/optimism-2.xfrom
fix/untraceable-tx-type-optimism
Nov 10, 2026
Merged

sduchesneau merged 3 commits into
release/optimism-2.xfrom
fix/untraceable-tx-type-optimism

Conversation

@sduchesneau

@sduchesneau sduchesneau commented Nov 10, 2026 •

Copy link
Copy Markdown

Makes OP post-exec transactions (type 0x7D, OpTxEnvelope::PostExec, turned on by the Lagoon fork) traceable, and names the transaction when a type still cannot be traced.

  • firehose-tracer goes to 5.5.1, which adds TxType::OptimismPostExec (TRX_TYPE_OPTIMISM_POST_EXEC = 125, Release 5.5.1 with Optimism post-exec transactions evm-firehose-tracer-rs#44). The mapper's try_into now maps 0x7D to it; a unit test covers it.
  • Any other untraceable type still stops the node (dropping the transaction would emit a block that differs from the chain), but the message names the transaction hash and type byte. Same change as f5c42840d1 on release/base-2.x.

This builds once firehose-tracer 5.5.1 is published. Then update the lock with cargo update -p firehose-tracer --precise 5.5.1 (a plain update would pick 5.7.0). Verified against the 5.5.1 branch through a local [patch.crates-io]: cargo check -p reth-firehose and cargo test -p reth-firehose --lib pass.

A post-exec transaction runs no EVM code, so its trace has no calls and, like any transaction without a call, no receipt and status UNKNOWN.

The node still stops: dropping the transaction would emit a block that differs
from the chain, and failing execution would reject a valid block.
firehose-tracer 5.5.1 adds the post-exec transaction type (0x7d), so the
mapper no longer stops the node on it.
@sduchesneau sduchesneau changed the title Name the transaction when its type cannot be traced Trace Optimism post-exec transactions Nov 10, 2026
@sduchesneau
sduchesneau marked this pull request as ready for review November 10, 2026 20:45
@sduchesneau
sduchesneau merged commit f601093 into release/optimism-2.x Nov 10, 2026
2 checks passed
@sduchesneau
sduchesneau deleted the fix/untraceable-tx-type-optimism branch November 10, 2026 21:03
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