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

Function cmp_rr_number

lightningd/invoice.c:601–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601static int cmp_rr_number(const struct routehint_candidate *a,
602 const struct routehint_candidate *b,
603 struct lightningd *ld)
604{
605 if (a->c->rr_number > b->c->rr_number)
606 return 1;
607 if (a->c->rr_number < b->c->rr_number)
608 return -1;
609
610 /* They're unique, so can't be equal */
611 log_broken(ld->log, "Two equal candidates %p and %p, channels %p and %p, rr_number %"PRIu64" and %"PRIu64,
612 a, b, a->c, b->c, a->c->rr_number, b->c->rr_number);
613 return 0;
614}
615
616/** select_inchan_mpp
617 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected