Skip to content

fix(client): the build drain starts a refill after the fetch ended #2513

Closed

Description

@thiras

Problem

When acquire returns, it awaits the lane builds still in flight for up to 30 s. A build there can be anywhere in its build: one that has not yet read the pool can still run the proactive refill and send a new topUp for a lane that never runs. That escrow is recorded and withdrawable, but the fetch did not need it.

#2506 makes the drain safe after an untracked escrow: the run refuses every later topUp and openPool. It does not stop a fresh, recorded refill after a fetch that completed.

Fix direction

The second direction from #2506: when the drain starts, cancel the builds that have not submitted a transaction, and await only those that have. For example, the run refuses every new topUp and openPool once the acquire has returned, while a build already past its submit finishes as it does now.

Checks

  • A build that reaches its refill after the fetch completed sends no topUp.
  • A build already past its submit when the fetch ends is still awaited, as today.

Activity

  1. added
    kind:bug
    rust
    area:payments
    on Oct 17, 2026
  2. self-assigned this
    on Oct 18, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 18, 2026
  4. moved this from In progress to Done in deCDNon Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:paymentskind:bugrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions