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

Function handle_irrevocably_resolved

lightningd/onchain_control.c:538–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538static void handle_irrevocably_resolved(struct channel *channel, const u8 *msg UNUSED)
539{
540 /* FIXME: Implement check_htlcs to ensure no dangling hout->in ptrs! */
541 free_htlcs(channel->peer->ld, channel);
542
543 log_info(channel->log, "onchaind complete, forgetting peer");
544
545 /* This will also free onchaind. */
546 delete_channel(channel, false);
547}
548
549
550/**

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