~/umbrel/bin/lncli pendingchannels
{
“total_limbo_balance”: “998154”,
“pending_open_channels”: [
],
“pending_closing_channels”: [
],
“pending_force_closing_channels”: [
],
“waiting_close_channels”: [
{
“channel”: {
“remote_node_pub”: “[redacted]”,
“channel_point”: “[redacted]”,
“capacity”: “1000000”,
“local_balance”: “998154”,
“remote_balance”: “0”,
“local_chan_reserve_sat”: “10000”,
“remote_chan_reserve_sat”: “10000”,
“initiator”: “INITIATOR_LOCAL”,
“commitment_type”: “ANCHORS”,
“num_forwarding_packages”: “0”,
“chan_status_flags”: “ChanStatusBorked|ChanStatusCommitBroadcasted|ChanStatusLocalCloseInitiator”
},
“limbo_balance”: “998154”,
“commitments”: {
“local_txid”: “[redacted]”,
“remote_txid”: “[redacted]”,
“remote_pending_txid”: “[redacted]”,
“local_commit_fee_sat”: “1186”,
“remote_commit_fee_sat”: “2028”,
“remote_pending_commit_fee_sat”: “0”
},
“closing_txid”: “[redacted]”
}
]
}
Can anything be done to close this channel and return the 998154 sats minus fees?
If you are very impatient, then you can force close that channel. Run this command (put the right id of the channel, this is just an example):
~/umbrel/bin/lncli closechannel --force 851ddc0900b775ff4afbd12ed4c8c003456eaea862ba96664344b06a04eec7c5 1
Again you can run the command to see the maturity:
~/umbrel/bin/lncli pendingchannels
and you will see the new “maturity_height” block number.
I hope you are not hit by this bug…
opened 05:03AM - 07 Feb 22 UTC
closed 11:47PM - 17 Mar 22 UTC
fees
P1
utxo sweeping
chain handling
### 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
3. 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".
Thank you for the reply.
“If you are very impatient” Does this mean if I wait and do nothing it will eventually close and return the local balance?
I had previously attempted the force close command (with the correct channel point, [space] instead of [:], but nothing happened.
fwiw I’ve never seen the “maturity_height” after running the pendingchannels command.
Is there a way to know if I’m affected by this bug? If so, are the funds lost?
Thank you!
Yes. Usually takes 144 blocks.
That means is in limbo. Try again the cli command for force close and wait few blocks and run again the pending channels commend, see what happem.
Ok. I ran pendingchannels again, and this time I see maturity_height. About 40 blocks. I’m going to chill for now and see what happens.
Thank you for your help!
1 Like
Nice! Exactly now just chill. After 40 blocks will be back.
Hello @DarthCoin I’ve had recently a similar issue, I noticed that the channelclose has been pending for couple of months now and this is what I see in lncli pendingchannels
So I was wondering is there anything I could do with the channel? I see that there’s still blocks to maturity but only for those 440 sats, however no info regarding local balance of 2 068 332 sats.
The other peer says the channel is closed for him
Also when I check the closing tx for those 440 sats I this, few little addresses and mine 2 068 332 sats but when I check the address the balance is 440 sats.
Do I have to wait for all of those little transactions to confirm?