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

Function closing_msg

lightningd/closing_control.c:489–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static unsigned closing_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED)
490{
491 enum closingd_wire t = fromwire_peektype(msg);
492
493 switch (t) {
494 case WIRE_CLOSINGD_RECEIVED_SIGNATURE:
495 peer_received_closing_signature(sd->channel, msg);
496 break;
497
498 case WIRE_CLOSINGD_COMPLETE:
499 peer_closing_complete(sd->channel, msg);
500 break;
501
502 case WIRE_CLOSINGD_NOTIFICATION:
503 peer_closing_notify(sd->channel, msg);
504 break;
505
506 /* We send these, not receive them */
507 case WIRE_CLOSINGD_INIT:
508 case WIRE_CLOSINGD_RECEIVED_SIGNATURE_REPLY:
509 break;
510 }
511
512 return 0;
513}
514
515void peer_start_closingd(struct channel *channel, struct peer_fd *peer_fd)
516{

Callers

nothing calls this directly

Calls 4

fromwire_peektypeFunction · 0.85
peer_closing_completeFunction · 0.85
peer_closing_notifyFunction · 0.85

Tested by

no test coverage detected