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

Function flow_edge

plugins/renepay/flow.c:409–414  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

407
408/* Helper to access the half chan at flow index idx */
409const struct half_chan *flow_edge(const struct flow *flow, size_t idx)
410{
411 assert(flow);
412 assert(idx < tal_count(flow->path));
413 return &flow->path[idx]->half[flow->dirs[idx]];
414}
415
416/* Assign the delivered amount to the flow if it fits
417 the path maximum capacity. */

Callers 6

tal_flow_amountsFunction · 0.70
flow_maximum_deliverableFunction · 0.70
flow_spendFunction · 0.70
flow_probabilityFunction · 0.70
flow_delayFunction · 0.70
flow_to_routeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected