MCPcopy Create free account
hub / github.com/ElementsProject/lightning / warning_to_peer

Function warning_to_peer

connectd/queries.c:58–68  ·  view source on GitHub ↗

Convenience function to send warning to a peer */

Source from the content-addressed store, hash-verified

56
57/* Convenience function to send warning to a peer */
58static 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 *

Callers 2

Calls 2

towire_warningfmtvFunction · 0.85
inject_peer_msgFunction · 0.70

Tested by

no test coverage detected