Runner which checks that invs didn't fail (TOO_MANY_HTLCS!), and requeues if they did!
(num, inv_q, done_q, report_q)
| 90 | |
| 91 | |
| 92 | def checker(num, inv_q, done_q, report_q): |
| 93 | """Runner which checks that invs didn't fail (TOO_MANY_HTLCS!), and requeues if they did!""" |
| 94 | for i in range(num): |
| 95 | inv = done_q.get() |
| 96 | try: |
| 97 | res = l1.waitsendpay(inv['payment_hash']) |
| 98 | except RpcError: |
| 99 | report_q.put('f') |
| 100 | if not args.fail_pay and not args.fail_forward: |
| 101 | inv_q.put(inv) |
| 102 | continue |
| 103 | assert res['status'] == 'complete' |
| 104 | report_q.put('w') |
| 105 | |
| 106 | |
| 107 | inv_q = multiprocessing.Queue() |
nothing calls this directly
no test coverage detected