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

Function pubkey_order

connectd/queries.c:78–83  ·  view source on GitHub ↗

~ 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. */

Source from the content-addressed store, hash-verified

76 * same node.
77 */
78static int pubkey_order(const struct node_id *k1,
79 const struct node_id *k2,
80 void *unused UNUSED)
81{
82 return node_id_cmp(k1, k2);
83}
84
85static void uniquify_node_ids(struct node_id **ids)
86{

Callers

nothing calls this directly

Calls 1

node_id_cmpFunction · 0.85

Tested by

no test coverage detected