Conversation
receipts_by_block_range fetched the receipts of the whole transaction span and split them by each block's transaction count. When receipts inside the span were missing, e.g. pruned, the receipts of later blocks were attributed to earlier ones. The span is now only split when it is complete; otherwise each block is looked up on its own and blocks with an incomplete set of receipts yield an empty vector, matching receipts_by_block.
kriss39
force-pushed
the
fix/receipts-by-block-range-missing
branch
from
September 20, 2026 08:59
8bf4737 to
bddad8c
Compare
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.
receipts_by_block_rangefetched the receipts of the whole transaction span and split them by each block's transaction count. When receipts inside the span were missing, e.g. pruned, the receipts of later blocks were attributed to earlier ones: with the receipts of block 1 gone, block 1 received the receipts of block 2 and block 2 came back empty. The single block lookupreceipts_by_blockalready validates the count and returnsNonein that case.The span is now only split when it is complete; otherwise each block is looked up on its own and a block with an incomplete set of receipts yields an empty vector, keeping every block's receipts at the right index.