Helper to access the half chan at flow index idx */
| 407 | |
| 408 | /* Helper to access the half chan at flow index idx */ |
| 409 | const 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. */ |
no outgoing calls
no test coverage detected