Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds lightweight, chain-agnostic extension hooks to
reth-firehoseandreth-engine-tree(on Rethv2.11.0/evm2) required by Morph L2 (streamingfast/morph-reth) and otherevm2-based embedders:SignatureFields(crates/firehose/src/mapper.rs): defaultfirehose_tx_typeandpopulate_tx_eventhooks so chains sharing raw type bytes (0x7e/0x7f) or carrying custom transaction input protos can map them cleanly.BlockDataadjustment (block_tracer.rs,init.rs,executor.rs,payload_validator.rs): defaultadjust_block_dataonFirehoseLiveHooksandChainHooks+emit_genesis_block_on_empty_chain_with_adjust, propagating chain-specific header fields across genesis, live Engine API import, and staged sync.PostTxExtrasper-tx hooks (executor.rs): defaultgas_accounting_for_tx,emit_post_tx_extras_for_tx, andcapture_receipt_extrasreceiving&evm2::TxResult<E::EvmTypes>andTxTypeon both serial and detached parallel execution paths.executor.rs,inspector.rs):PreTxAdjust::install_inspectorso chains whoseE::set_inspectorwraps RPC filters (e.g.FeeFrameFilter) can install their Firehose inspector directly on the inner EVM.journal()[self.journal_processed_up_to..len]inFirehoseInspector::process_pre_executionand refreshcapture_root_exitacross multi-frame transactions.set_call_depth_offsetandmark_root_frame_enteredhelpers for synthetic wrapper-root traces.Dependency
firehose-tracer/firehose-tracer-testinCargo.toml).