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

Function checker

contrib/giantnode.py:92–104  ·  view source on GitHub ↗

Runner which checks that invs didn't fail (TOO_MANY_HTLCS!), and requeues if they did!

(num, inv_q, done_q, report_q)

Source from the content-addressed store, hash-verified

90
91
92def 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
107inv_q = multiprocessing.Queue()

Callers

nothing calls this directly

Calls 2

waitsendpayMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected