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

Function msg_to_peer

lightningd/channel_gossip.c:368–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void msg_to_peer(const struct peer *peer, const u8 *msg TAKES)
369{
370 struct lightningd *ld = peer->ld;
371
372 /* Shutting down, or peer not connected? */
373 if (ld->connectd && peer->connected == PEER_CONNECTED) {
374 subd_send_msg(ld->connectd,
375 take(towire_connectd_peer_send_msg(NULL,
376 &peer->id,
377 peer->connectd_counter,
378 msg)));
379 }
380
381 tal_free_if_taken(msg);
382}
383
384static void addgossip_reply(struct subd *gossipd,
385 const u8 *reply,

Callers 4

broadcast_new_gossipFunction · 0.85
send_private_cupdateFunction · 0.85

Calls 3

tal_free_if_takenFunction · 0.85
subd_send_msgFunction · 0.70

Tested by

no test coverage detected