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

Function longest

tests/test_askrene.py:3005–3006  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

3003 return results
3004
3005 def longest(res):
3006 return max(len(r["path"]) for r in res["routes"])
3007
3008 def fee(res):
3009 return sum(r["path"][0]["amount_in_msat"] for r in res["routes"]) - AMOUNT

Callers 2

summaryFunction · 0.85
test_real_data_maxhopsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected