Fix debug assertion on opening a channel with a disconnected peer
authorMatt Corallo <git@bluematt.me>
Sun, 24 Dec 2023 06:10:38 +0000 (06:10 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 29 Dec 2023 06:24:18 +0000 (06:24 +0000)
commit5d8cd5a0a2545ab2304addf4412256f4eac8aef1
treeb11ea6f77db95a27539ca144e6cc1c187ae53733
parentc946edb218761c8ae7456ca9d89776410801c83a
Fix debug assertion on opening a channel with a disconnected peer

If we try to open a channel with a peer that is disconnected (but
with which we have some other channels), we'll end up with an
unfunded channel which will lead to a panic when the peer
reconnects. Here we drop this debug assertion without bother to add
a new test, given this behavior will change in a PR very soon.
lightning/src/ln/channelmanager.rs