| 1038 | } |
| 1039 | |
| 1040 | void custommsg_completed(struct daemon *daemon, const u8 *msg) |
| 1041 | { |
| 1042 | struct node_id id; |
| 1043 | const struct peer *peer; |
| 1044 | |
| 1045 | if (!fromwire_connectd_custommsg_in_complete(msg, &id)) |
| 1046 | master_badmsg(WIRE_CONNECTD_CUSTOMMSG_IN_COMPLETE, msg); |
| 1047 | |
| 1048 | /* If it's still around, log it. */ |
| 1049 | peer = peer_htable_get(daemon->peers, &id); |
| 1050 | if (peer) { |
| 1051 | status_peer_debug(&peer->id, "custommsg processing finished"); |
| 1052 | log_peer_io(peer, msg); |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | /* We handle pings and gossip messages. */ |
| 1057 | static bool handle_message_locally(struct peer *peer, const u8 *msg) |
no test coverage detected