| 942 | } |
| 943 | |
| 944 | void custommsg_completed(struct daemon *daemon, const u8 *msg) |
| 945 | { |
| 946 | struct node_id id; |
| 947 | const struct peer *peer; |
| 948 | |
| 949 | if (!fromwire_connectd_custommsg_in_complete(msg, &id)) |
| 950 | master_badmsg(WIRE_CONNECTD_CUSTOMMSG_IN_COMPLETE, msg); |
| 951 | |
| 952 | /* If it's still around, log it. */ |
| 953 | peer = peer_htable_get(daemon->peers, &id); |
| 954 | if (peer) { |
| 955 | status_peer_debug(&peer->id, "custommsg processing finished"); |
| 956 | log_peer_io(peer, msg); |
| 957 | } |
| 958 | } |
| 959 | |
| 960 | /* We handle pings and gossip messages. */ |
| 961 | static bool handle_message_locally(struct peer *peer, const u8 *msg) |
no test coverage detected