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

Function closing_msg

lightningd/closing_control.c:326–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326static unsigned closing_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED)
327{
328 enum closingd_wire t = fromwire_peektype(msg);
329
330 switch (t) {
331 case WIRE_CLOSINGD_RECEIVED_SIGNATURE:
332 peer_received_closing_signature(sd->channel, msg);
333 break;
334
335 case WIRE_CLOSINGD_COMPLETE:
336 peer_closing_complete(sd->channel, msg);
337 break;
338
339 case WIRE_CLOSINGD_NOTIFICATION:
340 peer_closing_notify(sd->channel, msg);
341 break;
342
343 /* We send these, not receive them */
344 case WIRE_CLOSINGD_INIT:
345 case WIRE_CLOSINGD_RECEIVED_SIGNATURE_REPLY:
346 break;
347 }
348
349 return 0;
350}
351
352void peer_start_closingd(struct channel *channel, struct peer_fd *peer_fd)
353{

Callers

nothing calls this directly

Calls 4

peer_closing_completeFunction · 0.85
peer_closing_notifyFunction · 0.85
fromwire_peektypeFunction · 0.50

Tested by

no test coverage detected