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

Function init_gossmap

plugins/offers.c:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void init_gossmap(struct plugin *plugin,
43 struct offers_data *od)
44{
45 od->global_gossmap_ = gossmap_load(plugin,
46 GOSSIP_STORE_FILENAME,
47 plugin_gossmap_logcb,
48 plugin);
49 if (!od->global_gossmap_)
50 plugin_err(plugin, "Could not load gossmap %s: %s",
51 GOSSIP_STORE_FILENAME, strerror(errno));
52}
53
54struct gossmap *get_gossmap(struct plugin *plugin)
55{

Callers 1

get_gossmapFunction · 0.70

Calls 1

plugin_errFunction · 0.70

Tested by

no test coverage detected