The pubkey to use is the destination of this routehint. */
| 2885 | |
| 2886 | /* The pubkey to use is the destination of this routehint. */ |
| 2887 | static const struct node_id *route_pubkey(const struct payment *p, |
| 2888 | const struct route_info *routehint, |
| 2889 | size_t n) |
| 2890 | { |
| 2891 | if (n == tal_count(routehint)) |
| 2892 | return p->route_destination; |
| 2893 | return &routehint[n].pubkey; |
| 2894 | } |
| 2895 | |
| 2896 | static u32 route_cltv(u32 cltv, |
| 2897 | const struct route_info *route, size_t num_route) |