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

Function add_layer

plugins/askrene/layer.c:214–222  ·  view source on GitHub ↗

Low-level versions of routines which do *not* save (used for loading, too) */

Source from the content-addressed store, hash-verified

212
213/* Low-level versions of routines which do *not* save (used for loading, too) */
214static struct layer *add_layer(struct askrene *askrene, const char *name TAKES, bool persistent)
215{
216 struct layer *l = new_temp_layer(askrene, askrene, name);
217 l->persistent = persistent;
218 assert(!find_layer(askrene, l->name));
219 layer_name_hash_add(askrene->layers, l);
220 tal_add_destructor2(l, destroy_layer, askrene);
221 return l;
222}
223
224static struct local_channel *add_local_channel(struct layer *layer,
225 const struct node_id *n1,

Callers 2

populate_layerFunction · 0.70
new_layerFunction · 0.70

Calls 2

new_temp_layerFunction · 0.85
find_layerFunction · 0.85

Tested by

no test coverage detected