MCPcopy Create free account
hub / github.com/ElementsProject/lightning / graceful_disconnect

Function graceful_disconnect

lightningd/peer_control.c:3005–3008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3003}
3004
3005static void graceful_disconnect(struct peer *peer)
3006{
3007 force_peer_disconnect(peer->ld, peer, "graceful shutdown");
3008}
3009
3010/* Returns number currently connected */
3011static size_t disconnect_idle_peers(struct lightningd *ld)

Callers

nothing calls this directly

Calls 1

force_peer_disconnectFunction · 0.70

Tested by

no test coverage detected