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

Function queue_peer_from_store

gossipd/gossipd.c:125–130  ·  view source on GitHub ↗

~ We have a helper for messages from the store. */

Source from the content-addressed store, hash-verified

123
124/*~ We have a helper for messages from the store. */
125void queue_peer_from_store(struct peer *peer,
126 const struct broadcastable *bcast)
127{
128 struct gossip_store *gs = peer->daemon->rstate->gs;
129 queue_peer_msg(peer, take(gossip_store_get(NULL, gs, bcast->index)));
130}
131
132/*~ We don't actually keep node_announcements in memory; we keep them in
133 * a file called `gossip_store`. If we need some node details, we reload

Callers 1

Calls 2

queue_peer_msgFunction · 0.70
gossip_store_getFunction · 0.70

Tested by

no test coverage detected