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

Function get_invs

contrib/giantnode.py:71–78  ·  view source on GitHub ↗

Runners feed invoices into the queue

(inv_q, num, report_q)

Source from the content-addressed store, hash-verified

69
70
71def get_invs(inv_q, num, report_q):
72 """Runners feed invoices into the queue"""
73 prefix = ''.join(random.choice(string.ascii_lowercase) for _ in range(10))
74 for i in range(num):
75 inv_q.put(l3.invoice(amount_msat=1,
76 label='{}-{}'.format(prefix, i),
77 description='giantnode'))
78 report_q.put('i')
79
80
81def send_pay(inv_q, num, done_q, report_q):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
invoiceMethod · 0.45

Tested by

no test coverage detected