~ Arbitrary ordering function of pubkeys. * * Note that we could use memcmp() here: even if they had somehow different * bitwise representations for the same key, we copied them all from struct * node which should make them unique. Even if not (say, a node vanished * and reappeared) we'd just end up sending two node_announcement for the * same node. */
| 880 | * same node. |
| 881 | */ |
| 882 | static int pubkey_order(const struct node_id *k1, |
| 883 | const struct node_id *k2, |
| 884 | void *unused UNUSED) |
| 885 | { |
| 886 | return node_id_cmp(k1, k2); |
| 887 | } |
| 888 | |
| 889 | static void uniquify_node_ids(struct node_id **ids) |
| 890 | { |
nothing calls this directly
no test coverage detected