Skip to content

fix(client,cli): an interrupted or dropped run does not name the untracked escrow it holds #2511

Closed

Description

@thiras

Problem

A command can end without naming an escrow that mined with no local record (EscrowUntracked), and then tell the operator a re-run is safe. The re-run reads the uncredited row, sees the pool low, and escrows again.

#2509 covers one way this happens: a bundle pull drops sibling groups in the middle of their drain. This issue covers the rest.

  1. Ctrl-C during the drain. decdn get drops the fetch on an interrupt. The 30 s drain after a fatal build is when a user sees the command hang and presses Ctrl-C. name_unconfirmed_escrows reads only the shared UnconfirmedEscrows. The receipt read already removed the mined tx from it, so the command prints "interrupted; run the same command again to resume". A bundle pull interrupted the same way ends BundleEnd::Interrupted with the same message.
  2. Nothing reads the run's hold at the end. After fix(client): a lane build that drains after an untracked escrow can send a second topUp #2506, RunFunding holds the run's first untracked escrow, and every later escrow of the run is refused. But no end-of-run path reads that hold. RunFunding is also rebuilt for each pass (fetch.rs, bundle engine), so it does not outlive a dropped fetch or group.

Fix direction

Checks

  • Ctrl-C while a fatal build's drain runs names the untracked tx. It does not say "run the same command again".
  • A bundle pull that ends GaveUp while the run holds an untracked escrow exits nonzero, not 75, and names the tx.

Found in the #2506 review (silent-failure pass). This behavior existed before #2506.

Activity

  1. added
    kind:bug
    rust
    area:payments
    on Oct 17, 2026
  2. changed the title [-]fix(client,cli): a run that ends on another stop loses its untracked escrow[/-] [+]fix(client,cli): an interrupted or dropped run does not name the untracked escrow it holds[/+] on Oct 17, 2026
  3. self-assigned this
    on Oct 18, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 18, 2026
  5. added a commit that references this issue on Oct 18, 2026
    6d5bbd5
  6. 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