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

Function l2_msat

tests/test_opening.py:3906–3907  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3904 target_msat = total_msat * 80 // 100
3905
3906 def l2_msat():
3907 return int(only_one(l2.rpc.listpeerchannels()['channels'])['to_us_msat'])
3908
3909 # Balances lag a payment behind, so track what we sent and wait for it:
3910 # reading to_us_msat straight after pay() returns overshoots and then asks

Calls 2

only_oneFunction · 0.90
listpeerchannelsMethod · 0.80

Tested by

no test coverage detected