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

Function invoice_unpaid

tests/test_pay.py:568–570  ·  view source on GitHub ↗
(dst, label)

Source from the content-addressed store, hash-verified

566 rhash = inv['payment_hash']
567
568 def invoice_unpaid(dst, label):
569 invoices = dst.rpc.listinvoices(label)['invoices']
570 return len(invoices) == 1 and invoices[0]['status'] == 'unpaid'
571
572 routestep = {
573 'amount_msat': amt,

Callers 1

test_sendpayFunction · 0.85

Calls 1

listinvoicesMethod · 0.45

Tested by

no test coverage detected