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

Function fees_visible

tests/test_xpay.py:1607–1616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1605 )
1606
1607 def fees_visible():
1608 chans = l1.rpc.listchannels()["channels"]
1609 cheap = sum(
1610 1
1611 for c in chans
1612 if c["fee_per_millionth"] == cheap_feeppm
1613 and c["base_fee_millisatoshi"] == 0
1614 )
1615 pricey = sum(1 for c in chans if c["fee_per_millionth"] == pricey_feeppm)
1616 return cheap >= long_hops - 1 and pricey >= 1
1617
1618 wait_for(fees_visible)
1619

Callers

nothing calls this directly

Calls 1

listchannelsMethod · 0.45

Tested by

no test coverage detected