# ChanStatusBorked

**URL:** <https://community.umbrel.com/t/chanstatusborked/6788>\
**Category:** Bitcoin and Lightning\
**Created:** [March 16, 2022, 2:38am UTC](https://community.umbrel.com/t/chanstatusborked/6788 "2022-03-16T02:38:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kendesu](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kendesu](https://community.umbrel.com/u/kendesu)\
**Post date:** [March 16, 2022, 2:38am UTC](https://community.umbrel.com/t/chanstatusborked/6788/1 "2022-03-16T02:38:54Z")

</div>

~/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?

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 16, 2022, 10:18am UTC](https://community.umbrel.com/t/chanstatusborked/6788/2 "2022-03-16T10:18:31Z")

</div>

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…

> <https://github.com/lightningnetwork/lnd/issues/6241>
>
> \### 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".

---

<div class="post-metadata">

**Author:** ![kendesu](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kendesu](https://community.umbrel.com/u/kendesu)\
**Post date:** [March 16, 2022, 2:57pm UTC](https://community.umbrel.com/t/chanstatusborked/6788/3 "2022-03-16T14:57:01Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 16, 2022, 8:04pm UTC](https://community.umbrel.com/t/chanstatusborked/6788/4 "2022-03-16T20:04:42Z")

</div>

> [@kendesu](#):
>
> Does this mean if I wait and do nothing it will eventually close and return the local balance?

Yes. Usually takes 144 blocks.

> [@kendesu](#):
>
> I’ve never seen the “maturity\_height”

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.

---

<div class="post-metadata">

**Author:** ![kendesu](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kendesu](https://community.umbrel.com/u/kendesu)\
**Post date:** [March 16, 2022, 8:58pm UTC](https://community.umbrel.com/t/chanstatusborked/6788/5 "2022-03-16T20:58:52Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 16, 2022, 10:01pm UTC](https://community.umbrel.com/t/chanstatusborked/6788/6 "2022-03-16T22:01:16Z")

</div>

Nice! Exactly now just chill. After 40 blocks will be back.

---

<div class="post-metadata">

**Author:** ![tulkooo](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tulkooo](https://community.umbrel.com/u/tulkooo)\
**Post date:** [August 19, 2023, 8:37pm UTC](https://community.umbrel.com/t/chanstatusborked/6788/7 "2023-08-19T20:37:08Z")

</div>

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

 ![pendingchannel](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/a/a2cf6e78e113bd374a38ce040273d3239cac5418.png)

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.

 ![mempool tx](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/e/ede10109b1e0c9b9e921ae28ce74dd42d0ebd396.png)

Do I have to wait for all of those little transactions to confirm?
