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

Function send_pay

contrib/giantnode.py:81–89  ·  view source on GitHub ↗

Runner to fetch invoices from queue and send

(inv_q, num, done_q, report_q)

Source from the content-addressed store, hash-verified

79
80
81def send_pay(inv_q, num, done_q, report_q):
82 """Runner to fetch invoices from queue and send"""
83 for i in range(num):
84 inv = inv_q.get()
85 l1.sendpay(route,
86 inv['payment_hash'],
87 payment_secret=inv['payment_secret'])
88 report_q.put('p')
89 done_q.put(inv)
90
91
92def checker(num, inv_q, done_q, report_q):

Callers

nothing calls this directly

Calls 2

sendpayMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected