Skip to content

Lost anchor: stuck sweep transaction (unconfirmed balance) #6241

@C-Otto

Description

@C-Otto

Background

After a force-close of an anchor channel my node was unable to recover the anchor output in time (it was swept by someone else, and the state is "LOST" in lncli pendingchannels). I didn't check, but I think this happened at a time with high on-chain fees, and the close tx was already confirmed (so grabbing the anchor doesn't help with that).

Now, a few days after my node published the now double-spent sweep transaction, I still see funds as "unconfirmed_balance" (I don't have anything else pending, and the mempool was just emptied). I believe that lnd still waits for the sweep transaction to confirm, which will never happen.

I'd like lnd to give up and "unblock" my funds.

Your environment

  • 0.14.1-beta
  • bitcoind v22 (pruned)

Steps to reproduce

  1. Open anchor channel
  2. Force-Close anchor channel
  3. Wait for sweep transaction to be created
  4. Steal anchor before anchor is recovered using sweep transaction

Expected behaviour

Sweep transaction is cancelled (forgotten), unspent transaction inputs can be used as inputs for other transactions.

Actual behaviour

Inputs are listed as "unconfirmed balance".

Metadata

Metadata

Assignees

Labels

P1MUST be fixed or reviewedchain handlingfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)utxo sweeping

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions