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

Function gossipd_notify_spends

lightningd/gossip_control.c:277–285  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

275
276/* We save these so we always tell gossipd about new blockheight first. */
277void gossipd_notify_spends(struct lightningd *ld,
278 u32 blockheight,
279 const struct short_channel_id *scids)
280{
281 subd_send_msg(ld->gossip,
282 take(towire_gossipd_outpoints_spent(NULL,
283 blockheight,
284 scids)));
285}
286
287/* We unwrap, add the peer id, and send to gossipd. */
288void tell_gossipd_local_channel_update(struct lightningd *ld,

Callers 2

topo_update_spendsFunction · 0.85
remove_tipFunction · 0.85

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected