fix(l1): decode stored EIP-8141 frame receipts without MalformedBoolean - #7047
Draft
AnkushinDaniil wants to merge 1 commit into
Draft
Conversation
This was referenced Jul 28, 2026
AnkushinDaniil
force-pushed
the
daniil/eip8141-receipt-rpc-decode
branch
from
July 29, 2026 06:12
84497d5 to
ebfd1c1
Compare
Contributor
|
Thanks, this looks like a real gap: main's |
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.
Problem
EIP-8141 gives frame transactions their own receipt shape (
ReceiptPayload = [cumulative_gas_used, payer, [frame_receipt, ...]], no top-levelsucceeded), so ethrex stores frame receipts with a dedicated storage encoding: every receipt write path usesReceipt::encode_storage()and every read path usesReceipt::decode_storage().The deferred-persistence flush path (
flush_block_data) was the one exception: it wrote receipts toRECEIPTS_V2withencode_to_vec(), the consensus encoding. For legacy receipt types the two encodings happen to coincide, so this went unnoticed. For a frame receipt they differ, and reading the flushed receipt back (e.g.eth_getTransactionReceiptafter the block is flushed from the deferred buffer) fails to decode withRLPDecodeError::MalformedBoolean.Change
receipt.encode_storage()inflush_block_data, matching the direct write paths.testing-gated helper to buffer a block with receipts, and a regression test that round-trips a frame receipt through the deferred buffer and a flush, asserting it decodes back unchanged.Evidence
Commands run on this branch:
Stack
Targets
frames-devnet-0. Part of a series of independent EIP-8141 fixes, one PR per logical change, each standing alone against the same base. Siblings: #7040 (canonical low-s), #7043 (recovery id at ecrecover boundary), #7044 (intrinsic gas over payload bytes), #7045 (arbitrary-scheme verification gas), #7046 (frame gas refunds), #7048 (skipped-frame status 2), #7049 (EIP-7623 calldata floor).Consensus risk / limits
Not consensus-affecting: this is a local storage-encoding bug; block execution and receipt roots are unchanged. It affects RPC availability of frame receipts once a block leaves the deferred buffer. Covered by an in-memory store round-trip test; not exercised against a RocksDB-backed store here.