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

Function disable_gossip_stream

gossipd/seeker.c:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static void disable_gossip_stream(struct seeker *seeker, struct peer *peer)
219{
220 u8 *msg;
221
222 status_peer_debug(&peer->id, "seeker: disabling gossip");
223
224 /* This is allowed even if they don't understand it (odd) */
225 msg = towire_gossip_timestamp_filter(NULL,
226 &chainparams->genesis_blockhash,
227 UINT32_MAX,
228 UINT32_MAX);
229 queue_peer_msg(peer->daemon, &peer->id, take(msg));
230}
231
232static void enable_gossip_stream(struct seeker *seeker, struct peer *peer,
233 bool ask_for_all)

Callers 2

normal_gossip_startFunction · 0.85
maybe_rotate_gossipersFunction · 0.85

Calls 1

queue_peer_msgFunction · 0.70

Tested by

no test coverage detected