Skip to content

node: a sub-anchor voucher under a new root stalls a multi-stream lane with no resume bundle #2173

Closed

Description

@thiras

Summary

A voucher strictly below the lane's signed anchor, under a root the lane does not meter, is swallowed as benign when more than one stream is active on the lane. The stream then anchors to a root the lane never took, so every reveal that follows folds nothing. With no headroom left, the stream waits out VOUCHER_READ_TIMEOUT (10 s) and fails with no bundle. This is the #2167 stall shape, below the anchor instead of at or above it.

Path

  1. LaneState::advance_presigned returns AmountRegression because amount < last_amount.
  2. The benign arm of verify_voucher (crates/node/src/handlers/client/voucher.rs) tries adopt_chain. That refuses because the amount is not the anchor, so the lane is unchanged.
  3. commit_one_proof still runs anchor.adopt(wire.chain_root), which binds the stream to the new root.
  4. stale_resume_bundle is the feat(client-pull): persisted peer knowledge base for probe-less client fetch #1946 self-heal that sends the bundle for a voucher strictly below the anchor. It returns None when active_streams > 1.
  5. Later reveals on the stream call advance_preimage_verified with an untracked root and get PreimageApplied::ZERO. They credit only lane headroom, and after that nothing.

Honest reach

A payer restarts with a persisted watermark behind the node's signed anchor, meaning it lost vouchers, not only reveals. It hits the gate when either:

  • it pulls on more than one stream on the lane, for example a RangeLane with width > 1 or several node_origin miss pulls sharing one ledger; or
  • it opens one new stream while the pre-crash stream is still counted in active_streams. That lasts until the old stream's own read timeout or the connection closes.

Why the gate exists

The active_streams <= 1 gate protects an honest lagging sibling. For example, a V2(R2) voucher that arrives after V3(R3) has already been accepted has the same shape, and that sibling relies on the benign arm plus headroom. The gate's comment says a wedged lane "still recovers via the VOUCHER_READ_TIMEOUT backstop". But the client drive loop treats that stall as terminal, so the backstop does not recover it.

A fix has to tell the restart apart from the lagging sibling without the stream count. One option: key on whether the stream's own anchor names a root the lane meters or has retired.

Related, low severity

At exactly the anchor, a new root with nothing proved (verified_index == 0) and bytes_delivered < last_bytes_delivered also stalls. It is not UnderFold, because the live claim equals the anchor. The same-amount byte check rejects only the more-bytes direction, and adopt_chain refuses because the bytes differ. Only a single-signer fault sends the same money for fewer bytes, and the payer only hurts itself. One option is to reject amount == last && bytes != last_bytes in both directions as BytesRegression.

Found during review of #2170 (#2167). Distinct from #2171, where reload headroom masks these stalls.

Activity

  1. added
    kind:bug
    rust
    status:mainnet-blocking
    area:node
    area:payments
    on Sep 26, 2026
  2. self-assigned this
    on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodearea:paymentskind:bugruststatus:mainnet-blocking

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions