Repository navigation
fix(network)!: refuse to send a blob transaction in Transactions - #5454
Merged
Merged
Conversation
EIP-4844 says that nodes must not broadcast blob transactions to their peers. The eth session checked the rules of Transactions (0x02) in caps/eth.md, but not this one, so it sent a type-3 transaction in a Transactions message. sendEth now refuses a Transactions message that holds a blob transaction. isBlobWire reads the type byte of a transaction in its wire form, and sendEth_blob states the refusal. BREAKING CHANGE: execution.network.session reports a sent Transactions message that holds a blob transaction as refused, where it reported sent.
EIP-4844 states its broadcast rule for the sender and fixes no reaction for the receiver, so the session accepts a Transactions message from the peer that holds a blob transaction. SOUNDNESS.md and the module header now list that case with the other open points. The comments of isBlobWire use the notation of EIP-2976.
The ban of EIP-4844 on broadcasting a blob transaction now lives in one primitive, `mayBroadcastType`, that both `mayBroadcastWhole` (decoded transaction) and `mayBroadcastWire` (wire form, replacing `isBlobWire`) use. `mayBroadcastWire_of_encodeTransaction` states that the two agree, and `run_no_blob` lifts the refusal to every run of a session. The docs quote EIP-4844 with "automatically", the session header links the EIP, and the case summary of Transactions lists the new condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 4, 2026
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.
An eth session refuses to send a Transactions message that holds a blob transaction, as the Networking section of EIP-4844 requires.
This supersedes #5445 by @ilitteri: it carries the two commits of that pull request, plus one review commit, because the branch of #5445 does not accept pushes from maintainers.
The problem
The Networking section of EIP-4844 says: "Nodes MUST NOT automatically broadcast blob transactions to their peers."
Such a transaction is only announced with NewPooledTransactionHashes, and a peer requests it with GetPooledTransactions.
sendEthchecked the rules ofcaps/eth.mdfor Transactions (0x02), but not this one, so a session could send a blob transaction whole.The idea
A typed transaction crosses the wire as
TransactionType || TransactionPayload(EIP-2976), so its type is the first byte, and the session reads it without a decode.mayBroadcastType(Execution/Network/Transactions.lean) holds the rule once: a type other than 3 may go whole.mayBroadcastWireapplies it to the wire form: a legacy list may go, a byte string goes when its first byte passes.mayBroadcastWhole(Execution/Network/Pool.lean) applies it to a decoded transaction.sendEthrefuses a Transactions message with any transaction that failsmayBroadcastWire.Example
After the two Status messages, the node tries three sends;
0x03c0and0x02c0are typed transactions of type 3 and 2 with an empty payload list.[0x03c0]: refused.[legacy, 0x03c0]: refused as a whole, so the legacy transaction does not count as sent.[0x02c0]: sent.test_blob_transactions_refusedruns these sends throughexecution.network.session.For reviewers
sendEth_blobstates the refusal for one send, andrun_no_blobalong any run.mayBroadcastWire_of_encodeTransactionstates that the wire check agrees withmayBroadcastWholeon the bytes of an encoded transaction.caps/eth.mdfixes a reaction, and SOUNDNESS.md lists it as an open point.caps/eth.mditself does not state the EIP-4844 rule in Transaction Exchange.Checks
lake build --wfail(whole library), before the last rebase: passed; after it, the network, session, pool and inclusion-list modules: passed.lake exe check-decls: 0 findings;lake exe proof-coverage --check: passed.check_layers.py,check_lean_layout.py,check_comment_code.py,soundness_facts.py --check: passed;check_writing.py: S1 and D1 suggestions only.pytest bindings/python/tests/eth: 512 passed, 1 skipped; ruff,check_python_comments.py,check_docstrings.py: passed.BREAKING CHANGE:
execution.network.sessionreports a sent Transactions message that holds a blob transaction asrefused, where it reportedsent.🤖 Generated with Claude Code