Repository navigation
feat(client): count each lane's wire bytes and report them in the bundle pull summary - #2788
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code coverage overviewLanguages: Rust Rust / code-coverage/cargo-llvm-cov
View coverage of the 7 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
…dle pull summary Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ire line as net Co-Authored-By: Claude Opus 5.5 <[email protected]>
yigitdot
force-pushed
the
fix/2444-bundle-pull-wire-bytes
branch
from
October 31, 2026 01:02
8a49a95 to
70aac2c
Compare
…wire-bytes # Conflicts: # CHANGELOG.md
…nd count is exact The stop test bounded the wire count to a range that also held when the frame past the promised length went uncounted. The lying server now signals once the buyer acknowledges every byte it wrote; the test stops after that signal and asserts the honest wire plus the one over-sent frame. Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
approved these changes
Oct 31, 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.

paid_bytes(#2443) counts what the vouchers and hash-chain reveals paid for. Payment follows verification, so bytes that arrive and never verify — frames past a steal split, or past the verified frontier before a lane fault — showed up in no figure. They cost bandwidth and time, not USDC.PoolLedgercounts theChunkDatawire bytes its streams read, before any verification: every frameUpstreamPulltakes in (innext_chunkand in the framesstop()reads past a split), and every frame it reads and drops (the frames it skips to reach the terminal message after a failed voucher write, and a frame past a ceiling). One helper grows the stream's received total and the lane count together, so they cannot drift; a dropped frame counts on the lane alone.LaneLedgers::wire_bytessums the lanes;PullCtx::runtakes the pull's share exactly as it does forpaid_bytes, second pool-replacement pass included, intoBundleReport::wire_bytes.decdn bundle pull --jsoncarrieswire_bytes. The human summary addsreceived W on the wire, U more than paid foronly whenwire_bytesis abovepaid_bytes.Uis net: verified bytes a leg left unpaid count in it too, and a voucher armed before the pull can confirm during it.BundleReport::wire_bytesandPoolLedger::wire_bytes.Naming: the issue proposed
received_bytes, but the dashboard activity record already usesreceived_bytesfor verified content bytes, so this field iswire_bytes.No
BlobSourceordrivesignature changes; node and gateway upstream pulls count too but do not read the figure.Closes #2444
🤖 Generated with Claude Code