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

Function long_forwards

tests/test_xpay.py:1621–1622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1619
1620 # Last hop of the long route. The expensive shortcut never reaches it.
1621 def long_forwards():
1622 return len(mids[-1].rpc.listforwards(status="settled")["forwards"])
1623
1624 def budget_of(line):
1625 return int(re.search(r"onion budget is ([0-9]+)\.", line).group(1))

Callers 1

test_xpay_maxhops_bolt11Function · 0.85

Calls 1

listforwardsMethod · 0.80

Tested by

no test coverage detected