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

Function handle_irrevocably_resolved

lightningd/onchain_control.c:443–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443static void handle_irrevocably_resolved(struct channel *channel, const u8 *msg UNUSED)
444{
445 /* FIXME: Implement check_htlcs to ensure no dangling hout->in ptrs! */
446 free_htlcs(channel->peer->ld, channel);
447
448 log_info(channel->log, "onchaind complete, forgetting peer");
449
450 /* This will also free onchaind. */
451 delete_channel(channel);
452}
453
454
455/**

Callers 1

onchain_msgFunction · 0.85

Calls 3

log_infoClass · 0.85
free_htlcsFunction · 0.70
delete_channelFunction · 0.70

Tested by

no test coverage detected