Skip to content

test(cli): pool open and pool top-up keep the escrow named during the record write #2521

Closed

Description

@thiras

Problem

#2515 keeps a mined openPool or topUp pending on the command's UnconfirmedEscrows until its record commits, so a second Ctrl-C during the record write names the tx. Library tests cover the client paths (StoreFaults::watching in funding/adoption_tests.rs). The CLI's own paths have no test:

  • decdn pool open (crates/cli/src/commands/pool.rs, open)
  • decdn pool top-up (crates/cli/src/commands/pool.rs, top_up_cmd)

A change that calls recorded() before the store write would reopen the window, and no test would fail.

Fix direction

Drive each command's body against a scripted RPC (decdn_incentive::test_rpc::ScriptedRpc::mined) and a store that notes whether the handle names the tx during record or add_deposit (model: StoreFaults::watching, or the fake store in pool/tests.rs).

Checks

  • During the record write, the handle names the tx, for pool open and pool top-up.
  • After a committed write, the handle holds nothing.

Activity

  1. self-assigned this
    on Oct 18, 2026
  2. added
    kind:test
    area:cli
    prio:low
    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:clikind:testprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions