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

Function send_warning

connectd/multiplex.c:171–185  ·  view source on GitHub ↗

Send warning, close connection to peer */

Source from the content-addressed store, hash-verified

169
170/* Send warning, close connection to peer */
171static 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 */
188static void wake_gossip(struct peer *peer);

Callers 3

handle_ping_inFunction · 0.85
read_body_from_peer_doneFunction · 0.85

Calls 3

status_vfmtFunction · 0.85
towire_warningfmtvFunction · 0.85
multiplex_final_msgFunction · 0.85

Tested by

no test coverage detected