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

Function do_pay

tests/benchmark.py:65–68  ·  view source on GitHub ↗
(i, s)

Source from the content-addressed store, hash-verified

63 start_time = time()
64
65 def do_pay(i, s):
66 p = l1.rpc.sendpay(route, i, payment_secret=s)
67 r = l1.rpc.waitsendpay(p['payment_hash'])
68 return r
69
70 for i, s in invoices:
71 fs.append(executor.submit(do_pay, i, s))

Callers

nothing calls this directly

Calls 4

sendpayMethod · 0.80
waitsendpayMethod · 0.80
invoiceMethod · 0.45
xpayMethod · 0.45

Tested by

no test coverage detected