(n)
| 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 |
no test coverage detected