Skip to content

bundle pull: count wire bytes received per lane so arrived-but-unverified bytes show in the summary #2444

Closed

Description

@yigitdot

Problem

#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.

Related

Activity

  1. added
    kind:feature
    area:cli
    prio:low
    on Oct 12, 2026
  2. moved this from Backlog to In progress in deCDNon Oct 30, 2026
  3. self-assigned this
    on Oct 30, 2026
  4. moved this from In progress to Done in deCDNon Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:featureprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions