Lightning channel is in unconfirmed open state
Unconfirmed channel open
So, what happened? A couple of weeks back I opened two new channels, 5mBit each, and waited for it to open. Next day it was still waiting for confirmation, so I left it and forgot about it. Two weeks later I remembered, and checked, and the channels were still in ‘Pending’ state.
1 | raspberrypi:~ $ lncli pendingchannels |
1 | { |
I wanted to close the channels, but that is not possible. The transactions are submitted to the MemPool and cannot be ‘removed’ from there. Nor cancelled. The only two options that I could find was to do a Replace By Fee (RBF) or a Child Pays For Parent (CPFP) transaction.
Running bumpfee
With LND on Raspiblitz, we have the bumpfee option for RBF, which looks like this:
1 | raspberrypi:~ $ lncli wallet bumpfee \ |
As you can see, this gives me an rpc error, a rather unhelpful one at that. I had no idea what to do about this, so I moved on…
To open a new channel which will replace the old channel:
1 | lncli openchannel \ |
I confess I’m not sure what this really does, despite reading a few bits on the web, but it appeared that I ended up with two channels pending, which wasn’t the intention.
At this point, I called it a night. When I logged in in the morning, there were no more pending channels and everything had gone through. Hmmm…
So, what happened?
I think the reason that the original transactions could not get confirmed is that the automatically set fee rate was low and then, with a rapid bull market, the mempool size was increasing and that meant my transactions had fallen low on the list of priorities. The night when they did go through, there was in fact a dip in the mempool size and that, I’m guessing, is why they became ‘Confirmed’ transactions.
Links
Useful information about this: