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

Function flow_edge

plugins/askrene/child/flow.c:118–123  ·  view source on GitHub ↗

Helper to access the half chan at flow index idx */

Source from the content-addressed store, hash-verified

116
117/* Helper to access the half chan at flow index idx */
118const struct half_chan *flow_edge(const struct flow *flow, size_t idx)
119{
120 assert(flow);
121 assert(idx < tal_count(flow->path));
122 return &flow->path[idx]->half[flow->dirs[idx]];
123}
124
125/* Helper function to find the success_prob for a single flow
126 *

Callers 8

convert_flows_to_routesFunction · 0.70
create_flow_reservationsFunction · 0.70
check_htlc_min_limitsFunction · 0.70
check_htlc_max_limitsFunction · 0.70
flow_spendFunction · 0.70
flow_probabilityFunction · 0.70
flow_delayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected