You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bundle pull: count wire bytes received per lane so arrived-but-unverified bytes show in the summary #2444
#2377 (PR #2443) adds paid_bytes to the decdn bundle pull summary: the bytes each lane's vouchers and hash-chain reveals paid for. Payment follows verification, so bytes that arrive over the wire and never verify are in no figure. One example is the bytes a lane received past its verified frontier before a lane fault (no verified progress for 10s, see #2376). They cost bandwidth and time, not USDC, and today no summary line, --json field or -v log shows them.
Proposal
Add a per-lane AtomicU64 received counter on PoolLedger (crates/client/src/ledger.rs). UpstreamPull already holds the lane's ledger.
Bump it where UpstreamPull::next_chunk adds a chunk's length to cumulative (crates/client/src/lib.rs), before verification. Count the frames stop() drains as well.
Sum it through LaneLedgers the same way paid_bytes is summed, take a pull's share in BundlePuller::pull, and report it as received_bytes in BundleReport and --json. Show it on the human line only when it exceeds paid_bytes.
No BlobSource or drive signature changes, so the node crate is not affected.
Activity