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

Function forget_channel

lightningd/channel_control.c:1444–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1442}
1443
1444static void forget_channel(struct channel *channel, const char *why)
1445{
1446 channel->error = towire_errorfmt(channel, &channel->cid, "%s", why);
1447
1448 /* If the peer is connected, we let them know. Otherwise
1449 * we just directly remove the channel */
1450 if (channel->owner)
1451 subd_send_msg(channel->owner,
1452 take(towire_channeld_send_error(NULL, why)));
1453 else
1454 forget(channel);
1455}
1456
1457static void handle_channel_upgrade(struct channel *channel,
1458 const u8 *msg)

Callers 1

Calls 3

towire_errorfmtFunction · 0.85
forgetFunction · 0.85
subd_send_msgFunction · 0.70

Tested by

no test coverage detected