Repository navigation
Closed
Description
My node was down for a while, and was brought back up yesterday and synced with the latest master. I am noticing a bunch of channels in CHANNELD_AWAITING_LOCKIN state even though they are fully confirmed. Is the proper way to close these and clean them up to call "dev-fail" against them?
Here are two examples where one was created by me and another looks like it was created by someone else:
{
"id": "03ee2b2492bdc1b265a5f4a009c8491af33e428f01295385757f2f44bdd3709922",
"connected": false,
"channels": [
{
"state": "CHANNELD_AWAITING_LOCKIN",
"short_channel_id": "510206:259:1",
"funding_txid": "9160bf6ca6544ae6d663bfef62caf0f76bc920d53ca6271a286dfa0b521f490d",
"msatoshi_to_us": 200000000,
"msatoshi_total": 200000000,
"dust_limit_satoshis": 546,
"max_htlc_value_in_flight_msat": 18446744073709552000,
"channel_reserve_satoshis": 0,
"htlc_minimum_msat": 0,
"their_to_self_delay": 144,
"our_to_self_delay": 144,
"to_self_delay": 144,
"max_accepted_htlcs": 483,
"status": [
"Loaded from database"
]
}
]
},
...
{
"id": "03e8ba09559f195480ec95d9f233227eb64f60db739238cbcaab92fded35091ac7",
"connected": false,
"channels": [
{
"state": "CHANNELD_AWAITING_LOCKIN",
"short_channel_id": "512451:1340:0",
"funding_txid": "d888f1614ef4625dde2153e7d00cd46f6912425bf71d643d0c11ca511a613e02",
"msatoshi_to_us": 0,
"msatoshi_total": 2000000,
"dust_limit_satoshis": 546,
"max_htlc_value_in_flight_msat": 18446744073709552000,
"channel_reserve_satoshis": 0,
"htlc_minimum_msat": 0,
"their_to_self_delay": 144,
"our_to_self_delay": 144,
"to_self_delay": 144,
"max_accepted_htlcs": 483,
"status": [
"Loaded from database"
]
}
]
},
Metadata
Metadata
Assignees
Labels
No labels
Activity
ZmnSCPxj commentedon Mar 18, 2018
How long has your node been up? It might not have caught up yet, meaning some waiting period first. The
status: ["Loaded from database"]means there is very little that lightningd has decided to do yet.If your side has seen the funding transaction confirmed (this is sometimes flaky) then it should also say something like
funding_locked: sending commit index %d.If the other side has seen the funding transaction confirmed (if this is another c-lightning this is sometims flaky) you should see something like
They've confirmed funding, we haven't yet.How long has it been since you restarted?
ZmnSCPxj commentedon Mar 18, 2018
lightning-cli getinfoshould also show theblockheightthat c-lightning has reached. This is not necessarily the same as the blockheight that the bitcoind that c-lightning is using.pooleja commentedon Mar 18, 2018
@ZmnSCPxj it looks like the node and lightningd are both synced.
ZmnSCPxj commentedon Mar 18, 2018
Can you do
listpeersagain? Is thestatusin particular the same["Loaded from database"]?ZmnSCPxj commentedon Mar 18, 2018
Also, can you try
getlog debug?cdecker commentedon Mar 18, 2018
Channels may also stay in that state until they receive the lockin message from the peer. Since the channels you listed are
connected: falsemight I suggest reconnecting to the peers and see if they complete the lockin and move on to become normal?pooleja commentedon Mar 19, 2018
Latest listpeers still shows CHANNELD_AWAITING_LOCKIN and "Loaded from database".
From debug output:
Trying to re-connect:
The node related to the incoming one above is not broadcasting their URI so I can't try this... which brings me back to the question "how can I clean these up"? Should I run dev-fail on them? Will this recover funds in the channel?
Thanks!
ZmnSCPxj commentedon Mar 19, 2018
Not bother? All the money is on the other side, not ours (
msatoshi_to_us= 0). If you really want to (e.g. the other side might have utterly destroyed its channel data and is waiting for you to clean it up for them because they cannot do so themselves) you can usedev-fail. But there is always the possibility that they come back online and route through you, none of your money is tied up on that channel, so it is no loss to you to keep the channel alive.pooleja commentedon Mar 19, 2018
@ZmnSCPxj thanks. Makes sense about the incoming channel.
What about the channel where I do have funds locked in? If I do want to close it out and recover the funds, what is the best way to handle that?
ZmnSCPxj commentedon Mar 19, 2018
I think
dev-fail? But see #1161. Possibly we do not have a good way to force a unilateral close yet.pooleja commentedon Mar 19, 2018
OK thanks. I will close this issue and watch #1161