We save these so we always tell gossipd about new blockheight first. */
| 275 | |
| 276 | /* We save these so we always tell gossipd about new blockheight first. */ |
| 277 | void 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. */ |
| 288 | void tell_gossipd_local_channel_update(struct lightningd *ld, |
no test coverage detected