Convenience function to send warning to a peer */
| 56 | |
| 57 | /* Convenience function to send warning to a peer */ |
| 58 | static void warning_to_peer(struct peer *peer, const char *fmt, ...) |
| 59 | { |
| 60 | va_list ap; |
| 61 | u8 *msg; |
| 62 | |
| 63 | va_start(ap, fmt); |
| 64 | msg = towire_warningfmtv(NULL, NULL, fmt, ap); |
| 65 | va_end(ap); |
| 66 | |
| 67 | inject_peer_msg(peer, take(msg)); |
| 68 | } |
| 69 | |
| 70 | /*~ Arbitrary ordering function of pubkeys. |
| 71 | * |
no test coverage detected