| 661 | } |
| 662 | |
| 663 | static struct route_info **select_inchan_all(const tal_t *ctx, |
| 664 | struct lightningd *ld, |
| 665 | struct routehint_candidate |
| 666 | *candidates) |
| 667 | { |
| 668 | struct route_info **routehints; |
| 669 | |
| 670 | log_debug(ld->log, "Selecting all %zu candidates", |
| 671 | tal_count(candidates)); |
| 672 | |
| 673 | routehints = tal_arr(ctx, struct route_info *, tal_count(candidates)); |
| 674 | for (size_t i = 0; i < tal_count(candidates); i++) { |
| 675 | routehints[i] = tal_dup(routehints, struct route_info, |
| 676 | candidates[i].r); |
| 677 | } |
| 678 | |
| 679 | return routehints; |
| 680 | } |
| 681 | |
| 682 | /* Encapsulating struct while we wait for gossipd to give us incoming channels */ |
| 683 | struct chanhints { |