-
Notifications
You must be signed in to change notification settings - Fork 2k
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]: channel stuck in waiting_close_channels #8560
Comments
Thanks for submitting this issue.
The remote commitment got confirmed see: 9d82dcc2eec62a43cb0e4fe6a02a4c3dccc30ee9acd4fc9591ccbaa327fb45b3, that's why you cannot see the local one somewhere. So find out why your LND did not recognize the spent of the channel point, can you
|
Both lines appear in the log. After restarting with
|
The rescan for the output might take a while don't stop the node:
normally it should be able to recognize the spend of the channel opening. |
Ah indeed, I let the node run for the night and now the channel is gone from waiting_close_channels. What was the cause of this? did lnd miss a transaction at some point? Or is there a bug is some logic that |
Yes I haven't been able to reproduce this edge case which happens sometime, where the height_hint cache has a wrong value in it. We are aware of this behavior and track it here: #8120 Therefore I am closing this issue. Feel free to reach out if you have further questions. |
Background
I have a LND node on testnet which has one channel in waiting_close_channels. Though when I look at the on-chain transactions, the channel has been (force) closed by the other node.
I suspect this was the sequence of actions:
"initiator": "INITIATOR_REMOTE"
).I tried restarting LND with a full rescan, but that did not help.
AFAICS there was no local balance on my side, the close transaction yielded coins only to the remote node.
It's also interesting that the committment local_txid (see below) can not be found in the mempool.
Your environment
lnd
: lnd version 0.17.4-betauname -a
on *Nix): Darwin Kernel Version 22.2.0btcd
,bitcoind
, or other backend: bitcoind in neutrino modeSteps to reproduce
This has happened a while ago, but I can provide any information you want. The node is on testnet and I'm trying to shut it down, so has no funds anymore.
Expected behaviour
LND notices the force channel close and clears the channel from its local database.
Actual behaviour
Channel is stuck in waiting_close_channels forever, even after a full chain rescan.
The text was updated successfully, but these errors were encountered: