Helper for short_channel_id ordering according to block number x transaction * index x output index. */
| 71 | /* Helper for short_channel_id ordering according to block number x transaction |
| 72 | * index x output index. */ |
| 73 | static 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 | * |
nothing calls this directly
no outgoing calls
no test coverage detected