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

Function queue_peer_msg

gossipd/gossipd.c:99–107  ·  view source on GitHub ↗

Queue a gossip message for the peer: connectd simply forwards it to * the peer. */

Source from the content-addressed store, hash-verified

97/* Queue a gossip message for the peer: connectd simply forwards it to
98 * the peer. */
99void queue_peer_msg(struct daemon *daemon,
100 const struct node_id *peer,
101 const u8 *msg TAKES)
102{
103 u8 *outermsg = towire_gossipd_send_gossip(NULL, peer, msg);
104 daemon_conn_send(daemon->connectd, take(outermsg));
105
106 tal_free_if_taken(msg);
107}
108
109/*~Routines to handle gossip messages from peer, forwarded by connectd.
110 *-----------------------------------------------------------------------

Callers 6

handle_recv_gossipFunction · 0.70
peer_warningFunction · 0.70
disable_gossip_streamFunction · 0.70
enable_gossip_streamFunction · 0.70
query_short_channel_idsFunction · 0.70
query_channel_rangeFunction · 0.70

Calls 2

daemon_conn_sendFunction · 0.85
tal_free_if_takenFunction · 0.85

Tested by

no test coverage detected