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

Function gossipd_notify_spends

lightningd/gossip_control.c:339–347  ·  view source on GitHub ↗

We save these so we always tell gossipd about new blockheight first. */

Source from the content-addressed store, hash-verified

337
338/* We save these so we always tell gossipd about new blockheight first. */
339void gossipd_notify_spends(struct lightningd *ld,
340 u32 blockheight,
341 const struct short_channel_id *scids)
342{
343 subd_send_msg(ld->gossip,
344 take(towire_gossipd_outpoints_spent(NULL,
345 blockheight,
346 scids)));
347}
348
349static struct command_result *json_setleaserates(struct command *cmd,
350 const char *buffer,

Callers 4

topo_update_spendsFunction · 0.85
remove_tipFunction · 0.85
handle_init_cupdateFunction · 0.85
gossipd_init_doneFunction · 0.85

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected