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

Function invoice_unpaid

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

Source from the content-addressed store, hash-verified

504 rhash = inv['payment_hash']
505
506 def invoice_unpaid(dst, label):
507 invoices = dst.rpc.listinvoices(label)['invoices']
508 return len(invoices) == 1 and invoices[0]['status'] == 'unpaid'
509
510 routestep = {
511 'amount_msat': amt,

Callers 1

test_sendpayFunction · 0.85

Calls 1

listinvoicesMethod · 0.45

Tested by

no test coverage detected