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

Function route_score_shorter

common/route.c:45–52  ·  view source on GitHub ↗

Prioritize distance over costs */

Source from the content-addressed store, hash-verified

43
44/* Prioritize distance over costs */
45u64 route_score_shorter(struct amount_msat fee,
46 struct amount_msat risk,
47 struct amount_msat total UNUSED,
48 int dir UNUSED,
49 const struct gossmap_chan *c UNUSED)
50{
51 return costs_to_score(fee, risk) + ((u64)1 << 32);
52}
53
54/* Prioritize costs over distance */
55u64 route_score_cheaper(struct amount_msat fee,

Callers

nothing calls this directly

Calls 1

costs_to_scoreFunction · 0.85

Tested by

no test coverage detected