The pubkey to use is the destination of this routehint. */
| 2615 | |
| 2616 | /* The pubkey to use is the destination of this routehint. */ |
| 2617 | static const struct node_id *route_pubkey(const struct payment *p, |
| 2618 | const struct route_info *routehint, |
| 2619 | size_t n) |
| 2620 | { |
| 2621 | if (n == tal_count(routehint)) |
| 2622 | return p->destination; |
| 2623 | return &routehint[n].pubkey; |
| 2624 | } |
| 2625 | |
| 2626 | static u32 route_cltv(u32 cltv, |
| 2627 | const struct route_info *route, size_t num_route) |