| 487 | } |
| 488 | |
| 489 | static 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 | |
| 515 | void peer_start_closingd(struct channel *channel, struct peer_fd *peer_fd) |
| 516 | { |
nothing calls this directly
no test coverage detected