Skip to content

fix(client): a mined openPool with no PoolOpened event is an untyped error, not EscrowUntracked #2507

Closed

Description

@thiras

Problem

opened_from_receipt ends with an untyped anyhow::bail! when an openPool mined but its receipt has no PoolOpened event for the owner. The deposit is escrowed, and open_pool already removed the UnconfirmedEscrows entry when it read the receipt. The only signal is an error! line, and CLI tracing is opt-in.

fault::classify sees a plain error, so every caller treats it as routine:

  • Acquire loop and first_open: Source, which LaneBuildFault turns into Transient. The build retries. Under ChainAdoption::Refused the retry opens a second pool.
  • Drain of late lane builds: escrow_untracked does not match, so it is logged at debug and dropped.
  • Recovery step (recovery.rs): the text is folded into "funding needed", which invites the user to fund again.

Fix

Return escrowed_but_untracked("buyer pool opened", tx, "PoolOpened event missing from the receipt logs") there, so the error is EscrowUntracked and is fatal to the command.

Checks

  • An openPool receipt with no matching PoolOpened log gives an error that classify grades Fatal(Command) and that names the tx.
  • The acquire loop does not retry that build.

Found in the #2500 review (silent-failure pass).

Activity

  1. added
    kind:bug
    prio:medium
    rust
    area:payments
    on Oct 17, 2026
  2. added a commit that references this issue on Oct 17, 2026
    a198ac2
  3. moved this from Backlog to In progress in deCDNon Oct 17, 2026
  4. self-assigned this
    on Oct 17, 2026
  5. moved this from In progress to Done in deCDNon Oct 17, 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:bugprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions