| 205 | } |
| 206 | |
| 207 | void 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 | |
| 218 | static void gossip_topology_synced(struct chain_topology *topo, void *unused) |
| 219 | { |
no test coverage detected