Repository navigation
Description
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
LaneState::advance_presignedreturnsAmountRegressionbecauseamount < last_amount.- The benign arm of
verify_voucher(crates/node/src/handlers/client/voucher.rs) triesadopt_chain. That refuses because the amount is not the anchor, so the lane is unchanged. commit_one_proofstill runsanchor.adopt(wire.chain_root), which binds the stream to the new root.stale_resume_bundleis 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 returnsNonewhenactive_streams > 1.- Later reveals on the stream call
advance_preimage_verifiedwith an untracked root and getPreimageApplied::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
RangeLanewithwidth > 1or severalnode_originmiss 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(node,client): heal a stale payer by lane headroom, not the stream…