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

Function forget_channel

lightningd/channel_control.c:469–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469static void forget_channel(struct channel *channel, const char *why)
470{
471 channel->error = towire_errorfmt(channel, &channel->cid, "%s", why);
472
473 /* If the peer is connected, we let them know. Otherwise
474 * we just directly remove the channel */
475 if (channel->owner)
476 subd_send_msg(channel->owner,
477 take(towire_channeld_send_error(NULL, why)));
478 else
479 forget(channel);
480}
481
482#if EXPERIMENTAL_FEATURES
483static void handle_channel_upgrade(struct channel *channel,

Callers 1

Calls 3

forgetFunction · 0.85
subd_send_msgFunction · 0.70
towire_errorfmtFunction · 0.50

Tested by

no test coverage detected