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

Function get_gossmap

plugins/offers.c:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54struct gossmap *get_gossmap(struct plugin *plugin)
55{
56 struct offers_data *od = get_offers_data(plugin);
57 if (!od->global_gossmap_)
58 init_gossmap(plugin, od);
59 else
60 gossmap_refresh(od->global_gossmap_);
61 return od->global_gossmap_;
62}
63
64/* BOLT #12:
65 * - if it is connected only by private channels:

Callers 7

found_best_peerFunction · 0.70
listoffers_doneFunction · 0.70
make_reply_pathFunction · 0.70
try_establishFunction · 0.70
param_pathsFunction · 0.70
we_want_blinded_pathFunction · 0.70
send_onion_replyFunction · 0.70

Calls 3

get_offers_dataFunction · 0.85
gossmap_refreshFunction · 0.85
init_gossmapFunction · 0.70

Tested by

no test coverage detected