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

Function init_gossmap

plugins/fetchinvoice.c:474–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static void init_gossmap(struct plugin *plugin)
475{
476 size_t num_cupdates_rejected;
477 global_gossmap
478 = notleak_with_children(gossmap_load(NULL,
479 GOSSIP_STORE_FILENAME,
480 &num_cupdates_rejected));
481 if (!global_gossmap)
482 plugin_err(plugin, "Could not load gossmap %s: %s",
483 GOSSIP_STORE_FILENAME, strerror(errno));
484 if (num_cupdates_rejected)
485 plugin_log(plugin, LOG_DBG,
486 "gossmap ignored %zu channel updates",
487 num_cupdates_rejected);
488}
489
490static struct gossmap *get_gossmap(struct plugin *plugin)
491{

Callers 1

get_gossmapFunction · 0.70

Calls 3

gossmap_loadFunction · 0.85
plugin_errFunction · 0.70
plugin_logFunction · 0.70

Tested by

no test coverage detected