| 25 | static bool got_gossmap; |
| 26 | |
| 27 | static void init_gossmap(struct plugin *plugin) |
| 28 | { |
| 29 | global_gossmap |
| 30 | = notleak_with_children(gossmap_load(NULL, |
| 31 | GOSSIP_STORE_FILENAME, |
| 32 | plugin_gossmap_logcb, |
| 33 | plugin)); |
| 34 | if (!global_gossmap) |
| 35 | plugin_err(plugin, "Could not load gossmap %s: %s", |
| 36 | GOSSIP_STORE_FILENAME, strerror(errno)); |
| 37 | } |
| 38 | |
| 39 | struct gossmap *get_raw_gossmap(struct payment *payment) |
| 40 | { |
no test coverage detected