#5329·lnd

PendingChannels doesn't show channels in the early stages of the open process

Author: joostjagerCreated May 25, 2021Updated Sep 25, 2026
LabelsenhancementrpcfundingP3

The state of pending open channels isn't visible in the output of PendingChannels until there is a funding transaction. This makes it impossible to pick up state in resume scenarios. Especially for automated operations this can be a problem.

For example: An automated process decides that it wants to open a channel. It calls the OpenChannel and right after this call, the automated process goes down. When the process comes back up, it still wants that channel. But how to know whether to call OpenChannel again or not? There is a risk of ending up with two channels.

What could work is to pass a caller-generated identifier to OpenChannel that can be used to track the channel without relying on a connection staying open. Similar to how payments can be tracked via the payment hash.