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

Function all_htlcs

tests/test_pay.py:3971–3976  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

3969
3970 # Make sure all HTLCs entirely resolved before we mine more blocks!
3971 def all_htlcs(n):
3972 htlcs = []
3973 for p in n.rpc.listpeers()['peers']:
3974 for c in n.rpc.listpeerchannels(p['id'])['channels']:
3975 htlcs += c['htlcs']
3976 return htlcs
3977
3978 wait_for(lambda: all([all_htlcs(n) == [] for n in [l1, l2, l3, l4]]))
3979

Callers 1

test_mpp_adaptiveFunction · 0.85

Calls 2

listpeerchannelsMethod · 0.80
listpeersMethod · 0.45

Tested by

no test coverage detected