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

Function queue_peer_msg

gossipd/gossipd.c:115–122  ·  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

113/* Queue a gossip message for the peer: connectd simply forwards it to
114 * the peer. */
115void queue_peer_msg(struct peer *peer, const u8 *msg TAKES)
116{
117 u8 *outermsg = towire_gossipd_send_gossip(NULL, &peer->id, msg);
118 daemon_conn_send(peer->daemon->connectd, take(outermsg));
119
120 if (taken(msg))
121 tal_free(msg);
122}
123
124/*~ We have a helper for messages from the store. */
125void queue_peer_from_store(struct peer *peer,

Callers 10

queue_peer_from_storeFunction · 0.70
handle_recv_gossipFunction · 0.70
disable_gossip_streamFunction · 0.70
enable_gossip_streamFunction · 0.70
apply_updateFunction · 0.70
query_short_channel_idsFunction · 0.70
send_reply_channel_rangeFunction · 0.70
query_channel_rangeFunction · 0.70

Calls 3

takenFunction · 0.85
tal_freeFunction · 0.85
daemon_conn_sendFunction · 0.50

Tested by

no test coverage detected