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

Function select_inchan_all

lightningd/invoice.c:664–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

add_routehintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected