The pubkey to use is the destination of this routehint. */
| 2901 | |
| 2902 | /* The pubkey to use is the destination of this routehint. */ |
| 2903 | static const struct node_id *route_pubkey(const struct payment *p, |
| 2904 | const struct route_info *routehint, |
| 2905 | size_t n) |
| 2906 | { |
| 2907 | if (n == tal_count(routehint)) |
| 2908 | return p->route_destination; |
| 2909 | return &routehint[n].pubkey; |
| 2910 | } |
| 2911 | |
| 2912 | static u32 route_cltv(u32 cltv, |
| 2913 | const struct route_info *route, size_t num_route) |