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

Function resend_closing_transactions

lightningd/peer_control.c:332–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void resend_closing_transactions(struct lightningd *ld)
333{
334 struct peer *peer;
335 struct channel *channel;
336
337 list_for_each(&ld->peers, peer, list) {
338 list_for_each(&peer->channels, channel, list) {
339 if (channel->state == CLOSINGD_COMPLETE)
340 drop_to_chain(ld, channel, true);
341 else if (channel->state == AWAITING_UNILATERAL)
342 drop_to_chain(ld, channel, false);
343 }
344 }
345}
346
347void channel_errmsg(struct channel *channel,
348 struct peer_fd *peer_fd,

Callers 1

mainFunction · 0.70

Calls 1

drop_to_chainFunction · 0.85

Tested by

no test coverage detected