Repository navigation
Closed
Labels
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwisestatus:mainnet-blockingMust land before the mainnet deployment
Description
Summary
A node silently credits 0 bytes for a voucher that under-folds the lane's live hash chain, then waits for a proof the client never sends. The stream hangs until proof read timed out after 10s, the client sees frame I/O error: early eof, fails over, and re-fetches the entry from another provider. On the testnet every tiny bundle entry routed to an affected node cost ~10.9 s.
Evidence (testnet, 2026-09-26, nodes on 74b13a5c)
decdn bundle pull --hash 9194000d… --namespace 1 (mistral-7b-instruct-v0.3), pool 0xcb5986…:
- Client: 9 of the first 10 entries fail at fra1 (
0xa43d…) withframe read failed: frame I/O error: early eof, each ~10 s after start, then succeed on failover. A 116-byte entry takes 10.9 s. - fra1 Tempo
serve_stream(trace08110f426b81906e9083adffcf2e5c13):proof 2 of at most 8 for a 202-byte chunk (202 bytes owed, 0 more queued): proof read timed out after 10s. Proof 1 credited nothing. - The same shape hits nbg1 for an earlier client process on the same pool (peer
24b77e…, trace6f8f7f03ff19ad1f596481770ea1c122:after payment: proof 1 … proof read timed out after 10s). Earlier CLI runs on this pool (0458fa…,24b77e…) left live chains on the fleet's lanes. - Counter:
decdn_serve_stream_client_declined_totalon fra1 rises by 18–20 over the pull.
Cause
- The lane holds a live chain from an earlier client process (
verified_index = k'). The new CLI process has no epoch loaded, so its first voucher carries a different (sealed) root, with an amount between the lane's signedlast_amountand its live claim (last_amount + k'×price). LaneState::advance_presignedrefuses it correctly asAmountRegression { last: live_claim }(crates/incentive/src/lane.rs:815-821). Its comment intends a loud rejection that carries the resume bundle.verify_vouchermaps everyAmountRegressionto benign "already satisfied" (crates/node/src/handlers/client/voucher.rs:763-786). The only exception is same-amount-more-bytes. It then creditscredit_advance(…)= 0.stale_resume_bundle(voucher.rs:839-851) compares against the signedprior_last_amount, not the live claim. The voucher is above that, so no bundle is sent.- The node's recoup loop (
delivery.rsrecoup phase) waits for proof 2 and times out.
The benign arm conflates two different cases:
- Sibling already settled. The amount is at or below
last_amount. This is benign. - Under-folds the live chain. The amount is above
last_amountbut below the live claim, under a different root. The payer must be told the fold it owes.
Fix shape
- In the
AmountRegressionarm, whenamount > state.last_amount()or the voucher's root differs from the live one, reject withwatermark_bundle_for_reject(AmountRegression, state)instead of crediting 0. Or makestale_resume_bundlecompare against the live claim. - Separately, find out why the client's persisted accrual trails what the node verified.
lane.rs:796says no honest payer reaches this. A reveal whose send errored locally but still reached the node is the likely path. This part is unconfirmed.
Tests
No node-level test drives an under-folding voucher through commit_one_proof. The existing coverage is the lane-level refusal (lane.rs ~1786/1828) and the reason mapping only.
Metadata
Metadata
Assignees
Labels
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwisestatus:mainnet-blockingMust land before the mainnet deployment
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsDone
Activity
fix(incentive,node): reject an under-folding voucher with the resume …
fix(incentive,node): reject an under-folding voucher with the resume …
fix(incentive,node,protocol): give an under-fold its own wire reason …
fix(incentive,node,client): treat a rollover at the signed anchor as …
fix(incentive,client): keep a late sealed close benign and let siblin…
fix(incentive,node): reject an under-folding voucher with the resume …