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

Function del_flow_from_arr

plugins/askrene/child/refine.c:366–370  ·  view source on GitHub ↗

Remove and free the flow */

Source from the content-addressed store, hash-verified

364
365/* Remove and free the flow */
366static void del_flow_from_arr(struct flow ***flows, size_t i)
367{
368 tal_free((*flows)[i]);
369 tal_arr_remove(flows, i);
370}
371
372/* It reduces the amount of the flows and/or removes some flows in order to
373 * deliver no more than max_deliver. It will leave at least one flow.

Callers 4

remove_excessFunction · 0.85
refine_flowsFunction · 0.85
squash_flowsFunction · 0.85
reduce_num_flowsFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected