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

Function spendable

tests/test_pay.py:3899–3902  ·  view source on GitHub ↗
(n1, n2)

Source from the content-addressed store, hash-verified

3897 wait_for(lambda: len(l1.rpc.listchannels()['channels']) == 6)
3898
3899 def spendable(n1, n2):
3900 chan = n1.rpc.listpeerchannels(n2.info['id'])['channels'][0]
3901 avail = chan['spendable_msat']
3902 return Millisatoshi(avail)
3903
3904 amt = Millisatoshi(10**8)
3905 # How many payments do we expect to go through directly?

Callers 1

test_pay_peerFunction · 0.85

Calls 2

MillisatoshiClass · 0.90
listpeerchannelsMethod · 0.80

Tested by

no test coverage detected