| 188 | } |
| 189 | |
| 190 | struct 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 | |
| 207 | static void destroy_layer(struct layer *l, struct askrene *askrene) |
| 208 | { |
no outgoing calls
no test coverage detected