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

Function less_comparer

common/dijkstra.c:52–60  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_dijkstraFunction · 0.85

Tested by

no test coverage detected