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

Function gossip_notify_new_block

lightningd/gossip_control.c:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void gossip_notify_new_block(struct lightningd *ld, u32 blockheight)
208{
209 /* Only notify gossipd once we're synced. */
210 if (!topology_synced(ld->topology))
211 return;
212
213 subd_req(ld->gossip, ld->gossip,
214 take(towire_gossipd_new_blockheight(NULL, blockheight)),
215 -1, 0, gossipd_new_blockheight_reply, int2ptr(blockheight));
216}
217
218static void gossip_topology_synced(struct chain_topology *topo, void *unused)
219{

Callers 2

gossip_topology_syncedFunction · 0.70
notify_new_blockFunction · 0.70

Calls 3

topology_syncedFunction · 0.85
int2ptrFunction · 0.85
subd_reqClass · 0.70

Tested by

no test coverage detected