Send warning, close connection to peer */
| 169 | |
| 170 | /* Send warning, close connection to peer */ |
| 171 | static void send_warning(struct peer *peer, const char *fmt, ...) |
| 172 | { |
| 173 | va_list ap; |
| 174 | u8 *msg; |
| 175 | |
| 176 | va_start(ap, fmt); |
| 177 | status_vfmt(LOG_UNUSUAL, &peer->id, fmt, ap); |
| 178 | va_end(ap); |
| 179 | |
| 180 | va_start(ap, fmt); |
| 181 | msg = towire_warningfmtv(NULL, NULL, fmt, ap); |
| 182 | va_end(ap); |
| 183 | |
| 184 | multiplex_final_msg(peer, take(msg)); |
| 185 | } |
| 186 | |
| 187 | /* Kicks off write_to_peer() to look for more gossip to send from store */ |
| 188 | static void wake_gossip(struct peer *peer); |
no test coverage detected