-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Funds stuck on Force Close Channel with negative blocks till maturity #9020
Comments
The first channel should have been swept by you lightning node already: See https://mempool.space/tx/11c50d04b7caf87c31fc0fa5ef5c5e42b2fdfbb91047415f205b6eec12186d70, and your htlc (61852sats) https://mempool.space/tx/c4e50921d3804e43ec20f3ca625ca05dbce181aa5ee3d1d2119059d43fe4a66a#vin=0 For the second channel(closing tx https://mempool.space/tx/94e3e491741ec3d9cbf7047cf2ca73ddb100b8176098b135881569066c310a34), your 1500000 sat output has not been swept yet, as the maturity height 857027 has just been reached, so it should be swept in the next hours. |
That's the issue, they have not been swept and the sats are missing in the wallet balance. For the first TX, the 61852 sats are not there. For the second, you mention the maturity height "has just been reached" but that was more than 700 blocks ago. Shouldn't it have been swept already? |
This doc can be helpful if you want to accelerate the sweeping process. Without logs it's hard to tell, but in general when the HTLC is in stage two, |
Hi yong, thanks a lot for that doc! It was useful. I have tried accelerating with with both transactions, without success: I tried:
Output (in both cases): [lncli] rpc error: code = Unknown desc = the passed output does not belong to the wallet What does that tell me about my issue? Also please let me know how can I provide logs if that may help |
Hi @Deivids1990, use Then use the outpoint mentioned there to bump the fee. |
example:
there is a small inaccuracy in the outpoint listed under |
Thanks for the help. I did as you suggested and got the right outpoint to use. I was able to execute both commands and get the output "status": "Successfully registered rbf-tx with sweeper" I soon after could see both TXs on the mempool and I have waited for them both to get confirmed. That happened few minutes ago. The result:
lncli wallet pendingsweeps now shows no sweeps at all anymore. "total_limbo_balance": "1500000", Any more insights what to try as next step to recover those 1,5M? |
They are in stage 2 sweeping, which means you now need to wait for the sequence-number lock to expiry:
after 358 blocks you should see a new sweep registered in your |
Closing based on the above. If the funds haven't been swept yet, feel free to re-open. |
Background
For some reason my LND force closed two channels a few days ago. After waiting for block maturity the limbo balance doesn't show in my wallet and blocks till maturity shows a negative value. I'm looking for some guidance how to sweep the funds to my onchain wallet
Your environment
Expected behaviour
Funds to appear in the wallet after maturity
Actual behaviour
Funds remain stuck, the UTXO doesn't show in my onchain wallet. Below is the output of lncli pendingchannels:
{
"total_limbo_balance": "1561852",
"pending_open_channels": [],
"pending_closing_channels": [],
"pending_force_closing_channels": [
{
"channel": {
"remote_node_pub": "0373eab8f43b0710549ddccc19ac7824ab6aea7655f4c15f4bc93b63df5db8fa48",
"channel_point": "9519c139773629a13c6ad66003963e0a948e0f47d533f8a9f3391c664002882c:1",
"capacity": "1000000",
"local_balance": "336035",
"remote_balance": "462084",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": false,
"memo": ""
},
"closing_txid": "11c50d04b7caf87c31fc0fa5ef5c5e42b2fdfbb91047415f205b6eec12186d70",
"limbo_balance": "61852",
"maturity_height": 0,
"blocks_til_maturity": 0,
"recovered_balance": "330",
"pending_htlcs": [
{
"incoming": false,
"amount": "61852",
"outpoint": "f115f57bd5c7dd76532619a4d0e907f8273e243f1794e2c403cf10d58c5aec36:0",
"maturity_height": 857354,
"blocks_til_maturity": -384,
"stage": 2
}
],
"anchor": "RECOVERED"
},
{
"channel": {
"remote_node_pub": "026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2",
"channel_point": "7fd88e06d8163c6000abd90ca5b48a8e639971c331fa3de0cb05fbe5f601abd7:0",
"capacity": "3000000",
"local_balance": "1466490",
"remote_balance": "30526",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": false,
"memo": ""
},
"closing_txid": "94e3e491741ec3d9cbf7047cf2ca73ddb100b8176098b135881569066c310a34",
"limbo_balance": "1500000",
"maturity_height": 0,
"blocks_til_maturity": 0,
"recovered_balance": "0",
"pending_htlcs": [
{
"incoming": false,
"amount": "1500000",
"outpoint": "81d3676fded8000a3b5620593230394c5fc199af9a09980584b68db23fc8ebf1:0",
"maturity_height": 857027,
"blocks_til_maturity": -711,
"stage": 1
}
],
"anchor": "LOST"
}
],
"waiting_close_channels": []
The text was updated successfully, but these errors were encountered: