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

Function init_gossmap

plugins/libplugin-pay.c:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static bool got_gossmap;
26
27static 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
39struct gossmap *get_raw_gossmap(struct payment *payment)
40{

Callers 1

get_raw_gossmapFunction · 0.70

Calls 1

plugin_errFunction · 0.70

Tested by

no test coverage detected