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

Function less_comparer

common/dijkstra.c:55–63  ·  view source on GitHub ↗

We want a minheap, not a maxheap, so this is backwards! */

Source from the content-addressed store, hash-verified

53
54/* We want a minheap, not a maxheap, so this is backwards! */
55static int less_comparer(const void *const ctx,
56 const void *const a,
57 const void *const b)
58{
59 return get_dijkstra(global_dijkstra, global_map,
60 *(struct gossmap_node **)a)->score
61 > get_dijkstra(global_dijkstra, global_map,
62 *(struct gossmap_node **)b)->score;
63}
64
65static void item_mover(void *const dst, const void *const src)
66{

Callers

nothing calls this directly

Calls 1

get_dijkstraFunction · 0.85

Tested by

no test coverage detected