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

Function pubkey_order

gossipd/queries.c:882–887  ·  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

880 * same node.
881 */
882static 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
889static void uniquify_node_ids(struct node_id **ids)
890{

Callers

nothing calls this directly

Calls 1

node_id_cmpFunction · 0.50

Tested by

no test coverage detected