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

Function scid_order

connectd/queries.c:73–77  ·  view source on GitHub ↗

Helper for short_channel_id ordering according to block number x transaction * index x output index. */

Source from the content-addressed store, hash-verified

71/* Helper for short_channel_id ordering according to block number x transaction
72 * index x output index. */
73static int scid_order(const struct short_channel_id *scid1,
74 const struct short_channel_id *scid2, void *unused UNUSED)
75{
76 return scid1->u64 < scid2->u64 ? -1 : scid1->u64 > scid2->u64 ? 1 : 0;
77}
78
79/*~ Arbitrary ordering function of pubkeys.
80 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected