Skip to content

Fail create_channel early if peer is disconnected #2437

Closed
@dunxen

Description

@dunxen

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):

let peer_state_mutex = per_peer_state.get(&their_network_key)

We also need to check for .is_connected if we know about the peer.

See #2382 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions