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

Function find_hint

plugins/libplugin-pay.c:616–626  ·  view source on GitHub ↗

FIXME: This is slow! */

Source from the content-addressed store, hash-verified

614
615/* FIXME: This is slow! */
616static const struct channel_hint *find_hint(const struct channel_hint *hints,
617 const struct short_channel_id *scid,
618 int dir)
619{
620 for (size_t i = 0; i < tal_count(hints); i++) {
621 if (short_channel_id_eq(scid, &hints[i].scid.scid)
622 && dir == hints[i].scid.dir)
623 return &hints[i];
624 }
625 return NULL;
626}
627
628/* FIXME: This is slow! */
629static bool dst_is_excluded(const struct gossmap *gossmap,

Callers 1

payment_route_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected