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

Function get_invs

contrib/giantnode.py:75–82  ·  view source on GitHub ↗

Runners feed invoices into the queue

(inv_q, num, report_q)

Source from the content-addressed store, hash-verified

73
74
75def get_invs(inv_q, num, report_q):
76 """Runners feed invoices into the queue"""
77 prefix = ''.join(random.choice(string.ascii_lowercase) for _ in range(10))
78 for i in range(num):
79 inv_q.put(l3.invoice(amount_msat=1,
80 label='{}-{}'.format(prefix, i),
81 description='giantnode'))
82 report_q.put('i')
83
84
85def 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