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

Function delete_channel

lightningd/channel.c:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void delete_channel(struct channel *channel STEALS)
91{
92 struct peer *peer = channel->peer;
93 if (channel->dbid != 0)
94 wallet_channel_close(channel->peer->ld->wallet, channel->dbid);
95 tal_free(channel);
96
97 maybe_delete_peer(peer);
98}
99
100void get_channel_basepoints(struct lightningd *ld,
101 const struct node_id *peer_id,

Callers 9

channel_fail_forgetFunction · 0.70
channel_internal_errorFunction · 0.70
channel_errmsgFunction · 0.70
forgetFunction · 0.70
channel_notify_new_blockFunction · 0.70

Calls 3

wallet_channel_closeFunction · 0.85
tal_freeFunction · 0.85
maybe_delete_peerFunction · 0.85

Tested by 1