fix(firehose): handle multi-system Arbitrum blocks - #13
Merged
DenisCarriere merged 2 commits intoAug 3, 2026
Conversation
DenisCarriere
deleted the
fix/firehose-arbitrum-multiple-system-transactions
branch
August 3, 2026 17:08
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
TRX_TYPE_ARBITRUM_INTERNALtransactionsdebug_traceBlockByNumberCloses #12.
Why
The Robinhood backfill repeatedly stalled on ranges containing blocks such as
26899013. Firehose reports two Arbitrum internal transactions for these blocks. The block-level system calls belong to transaction index 0, but the later Firehose transaction's call hierarchy does not match the node'sdebug_traceBlockByNumberresponse.Importing those traces would be unsafe. Returning
internal_transactions: nilfor the affected batch preserves Blockscout's standardpending_block_operationspath so its native trace fetcher completes them durably.Firehose can also transiently return finalized boundary blocks outside the requested range. These are now filtered rather than causing a complete requested range to retry forever.
CI reliability
The Explorer suite failed twice on two different Solidity compiler versions because async verifier tests raced the global Tesla adapter and
SolcDownloader. The module is now synchronous, matching its process-global setup and preventing another test's Mox context from leaking into compiler downloads.Validation
npm test: 15 tests passedmix formatcompleted26899013successfully: 1 block, 2 transactions, fallback enabledDeployment behavior
This keeps one Blockscout indexer. Catchup throughput remains controlled by Blockscout's native batch-size and concurrency settings; only the exceptional ranges use the existing RPC trace worker.