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

Function try_pay

tests/test_closing.py:2368–2374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2366 q = queue.Queue()
2367
2368 def try_pay():
2369 try:
2370 l1.rpc.sendpay(route, rhash, payment_secret=inv['payment_secret'])
2371 l1.rpc.waitsendpay(rhash)
2372 q.put(None)
2373 except Exception as err:
2374 q.put(err)
2375
2376 t = threading.Thread(target=try_pay)
2377 t.daemon = True

Callers

nothing calls this directly

Calls 2

sendpayMethod · 0.80
waitsendpayMethod · 0.80

Tested by

no test coverage detected