| 491 | } |
| 492 | |
| 493 | static struct channel_hint *payment_chanhints_get(struct payment *p, |
| 494 | struct route_hop *h) |
| 495 | { |
| 496 | struct payment *root = payment_root(p); |
| 497 | struct short_channel_id_dir scidd = {.scid = h->scid, .dir = h->direction}; |
| 498 | return channel_hint_set_find(root->hints, &scidd); |
| 499 | } |
| 500 | |
| 501 | /* Given a route and a couple of channel hints, apply the route to the channel |
| 502 | * hints, so we have a better estimation of channel's capacity. We apply a |
no test coverage detected