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
fix(client): a drained lane build can still re-send a topUp, or wait on locks, after its fetch ended #2520
area:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
#2513 ends a fetch for its lane builds as the drain starts. A build that reaches its openPool or topUp after that sends none. Two paths still behave as before.
A nonce-collision re-send.send_top_up re-sends a topUp that lost its nonce, up to three more times, a quarter second apart (buyer_pool.rs). The fetch-end check runs before top_up, not before each re-send. A fetch that ends during the backoff still gets the re-send. The first send broadcast nothing, so this is a topUp the fetch did not need. It is recorded, not lost.
Lock waits. A drained build takes the bundle-wide open_lock (lanes.rs) and the run's top_up_serial (funding.rs::escrow_top_up) before it checks the token. A sibling that holds either lock through its receipt wait (up to RECEIPT_TIMEOUT, 3 min) keeps the drained build waiting for the whole 30 s BUILD_DRAIN. The build then drops with the "lane builds still running" warning, though it would have sent nothing.
Fix direction
Pass the token into top_up (or check it in the re-send loop) and refuse a re-send once it fires.
Check ended before the lock waits, or race each lock against ended.cancelled(), so a drained build that has sent nothing ends at once.
Checks
A topUp whose first send collides on its nonce sends no re-send after the fetch ends.
A drained build queued behind a sibling's topUp receipt wait ends at once with FetchEnded.
area:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
fix(client,cli): name every closed pool on every exit; review follow-…
fix(client,cli)!: replacement reporting, drained-build lock waits, po…