Repository navigation
feat: index transaction fees, execution status, and calldata - #159
Merged
Merged
Conversation
Merged
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
Index execution receipt data, execution status, and calldata for blob transactions so Blobscan can calculate the total fee paid.
Part of Blobscan/blobscan#1130.
Companion monorepo PR: Blobscan/blobscan#1143.
Require receipt fields explicitly and match transaction and block identities. Limit receipt requests to four concurrent requests per block, use a 16-second timeout, and retry unavailable receipts up to five times. Keep the existing gasPrice field unchanged. Receipt status 0x1 maps to success, and 0x0 maps to failed. Missing or invalid status prevents indexing. Failed transaction execution still retains its fees.
Evidence
After: Block-processing tests verify receipt fields, calldata, retries, identity mismatches, missing prices, missing or invalid status, and failed execution.
cargo +stable fmt --all --checkpassed.cargo +stable clippy --locked --offline --all --all-featurescompleted with existing warnings.Merge Danger
Door: two-way
The indexer can be rolled back while the monorepo retains the new nullable fields.
Blast Radius: indexing
Deploy the companion monorepo migration and API first. Missing or inconsistent receipt data now fails the block attempt instead of indexing incomplete fee data. The execution RPC must serve receipts for the indexed blocks.