Closed
Description
We need to ensure in the case where a peer is disconnected that we fail early when we invoke ChannelManager::create_channel
for their_network_key
.
The only thing we currently do is check if we know about the peer at all (they're in the per_peer_state
):
rust-lightning/lightning/src/ln/channelmanager.rs
Line 2195 in e4c44f3
We also need to check for .is_connected
if we know about the peer.
See #2382 (comment)