Skip to content

feat(firehose): integrate Firehose v3.1 tracing on Reth v2.11.0 - #1

Draft
panos-xyz wants to merge 1 commit into
chore/upgrade-reth-2.11.0from
feat/firehose-v2.11.0
Draft

panos-xyz wants to merge 1 commit into
chore/upgrade-reth-2.11.0from
feat/firehose-v2.11.0

Conversation

@panos-xyz

Copy link
Copy Markdown
Collaborator

Summary

Integrates StreamingFast Firehose v3.1 tracing onto Morph Reth v2.11.0 (evm2):

  • Default activation (bin/morph-reth, crates/node/src/{args,firehose,node,validator}.rs):
    • Firehose output (FIRE INIT 3.1 morph-reth + genesis FIRE BLOCK 0 on empty datadir + FIRE BLOCK per executed block) is enabled by default (--no-firehose available to opt out).
    • Replaces the earlier ExEx initialization with on_component_initialized (streamingfast/reth-bsc#10 style) to prevent ExEx WAL accumulation.
    • Maps Morph hardforks (Bernoulli -> Shanghai/Cancun at genesis, Viridian -> Prague) in chain_config_from_spec so mainnet.json and hoodi.json activate EIP-7702 address_delegates_to in firehose-tracer.
    • Disables pre-inserted executed payloads (include_executed_block = false) when Firehose is active so Engine API imports always run through traced execution.
  • Primitives & EVM hooks (crates/primitives, crates/evm/src/{config,firehose}.rs):
    • SignatureFields for MorphTxEnvelope: maps 0x7f (TxType::Morph + MorphTrxInput) and 0x7e (TxType::MorphL1Message + MorphL1MessageTrxInput, empty v).
    • MorphPostTxExtras & FirehoseLiveHooks: Morph L2 gas/L1-data-fee accounting to FEE_VAULT (no base-fee burn, zero L2 gas movement on L1 messages and ERC-20 token-fee txs), MorphTrxOutput (l1_fee, fee_rate, token_scale), header morph_next_l1_msg_index, and staged sync batch_executor wiring via LiveChainHooks.
  • E2E & Staged Sync Parity tests (crates/node/tests/firehose/main.rs):
    • 9 integration tests asserting BlockInvariants::assert(&block) across Engine API assembly/import, Morph ETH fee rules + MorphTrxOutput, L1 messages + morph_next_l1_msg_index, MorphTx V1 ETH fee, MorphTx V2 EIP-7702 applied/discarded authorizations + address_delegates_to, safe block import, invalid block rejection, disabled SELFDESTRUCT, and exact protobuf parity between batch_executor staged sync and live Engine API import.

Dependencies & Remaining Work (Draft)

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