MCPcopy Create free account
hub / github.com/ElementsProject/lightning / select_inchan_all

Function select_inchan_all

lightningd/invoice.c:663–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663static 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 */
683struct chanhints {

Callers 1

add_routehintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected