| 599 | } |
| 600 | |
| 601 | static 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 | * |
nothing calls this directly
no outgoing calls
no test coverage detected