Open vincenzopalazzo opened 4 months ago
It literally says that this failure is expected because we are sending a conflicting commitment tx to the peers close.
Well not quite, this problem was because the wallet of cln is tracking spent tx and it is putting inside the funding transaction.
So this is a bug of our dev- commands that need to be fixed somehow, I think I provided some idea in here https://github.com/vincenzopalazzo/lightning/commit/6e2ab0217eb2e6ffd37297cffedf59e2d8b3a083
Sorry if I reopen this again @cdecker but my node fall in this state again, so I think we need to look at https://github.com/ElementsProject/lightning/pull/7296
I believe I have the same issue. I see log messages like
lightningd: Expected error broadcasting tx 02000000000102e2fed46a...b268c6fd0c00: error code: -25\nerror message:\nbad-txns-inputs-missingorspent
and I have some channels with active HTLCs that are being force closed.
I have experience in debugging this issue, could you shoot me an email with your description of the problem?
Because if also you fall in this case we should do something about it
alright I believe I've figured this out. I was using clboss on my node, and has set these channels to be unmanaged by clboss.
lightning-cli clboss-unmanage <the_node_id> lnfee
I just happened to run lightning-cli listpeerchannels
and found a HTLC with
state: Waiting for the htlc_accepted hook of plugin clboss
I disabled the clboss plugin completely and the HTLC state is now SENT_REMOVE_HTLC
.
I'm not sure if I had misconfigured clboss somehow but I'm going to be extremely careful before I enable it again, and also learned to watch the htlc status in listpeerchannels
.
Thank you everyone for building on Bitcoin!
I did not debug how this is possible but it is better to store this error somewhere