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
node: an upstream fault forgives the floor, so a serve-miss can spend the node's buyer pool without floor debt #2841
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
owes_floor_debt (crates/node/src/handlers/client/outcome.rs:153) returns false for any Err that is not PeerFault / ClientPaymentFault (wire.rs:362), and serve_leg.rs:162 then settles the floor to zero. ADR 003:303 justifies this as "the fronted bytes stay in the node's cache".
On a serve-miss, though, the node pays the upstream for its first window (crates/client/src/pacer.rs:49, lib.rs:3384-3390) before the downstream client owes a proof. An upstream Unavailable then ends the serve with a non-peer fill error (crates/node/src/node_origin/pull_leg.rs:1296-1348).
A counterparty that is both the downstream pool owner and a bonded upstream holder can request fresh hashes. It is paid one upstream voucher per stream and never accumulates floor debt:
the remaining − M and k-window ceilings never engage;
the ADR 041 warming allowance is not debited on a faulted run (pull_leg.rs:1811-1822).
Per cycle the amount is small (one window at the upstream rate), but it is unbounded over time and never consumes the attacker's deposit. only_the_clients_own_conduct_leaves_floor_debt (handlers/client/tests.rs:2015-2065) pins the forgiveness as intended. Related: #856, #2767.
Charge the floor on a miss-leg end for which the node fronted upstream USDC: skip settle_end when the fill reports upstream bytes paid, or treat a FillError chain as owing
Activity