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

Function new_temp_layer

plugins/askrene/layer.c:190–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190struct layer *new_temp_layer(const tal_t *ctx, struct askrene *askrene, const char *name TAKES)
191{
192 struct layer *l = tal(ctx, struct layer);
193
194 l->askrene = askrene;
195 l->name = tal_strdup(l, name);
196 l->persistent = false;
197 l->local_channels = new_htable(l, local_channel_hash);
198 l->local_updates = new_htable(l, local_update_hash);
199 l->constraints = new_htable(l, constraint_hash);
200 l->biases = new_htable(l, bias_hash);
201 l->node_biases = new_htable(l, node_bias_hash);
202 l->disabled_nodes = tal_arr(l, struct node_id, 0);
203
204 return l;
205}
206
207static void destroy_layer(struct layer *l, struct askrene *askrene)
208{

Callers 4

add_layerFunction · 0.85
source_free_layerFunction · 0.85
listpeerchannels_doneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected