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

Function budget_of

tests/test_xpay.py:1624–1625  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

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))
1626
1627 # payment_log prints "N: onion budget is X." A second copy of the same
1628 # line is also forwarded as a notify, so match the numbered one only.

Callers 1

test_xpay_maxhops_bolt11Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected