also return preimage on listinvoices.

This commit is contained in:
fiatjaf
2019-11-25 22:48:03 -03:00
committed by Rusty Russell
parent 770789684c
commit c0368a717a
2 changed files with 2 additions and 1 deletions

View File

@@ -517,6 +517,7 @@ def test_sendpay(node_factory):
assert only_one(l2.rpc.listinvoices('testpayment2')['invoices'])['status'] == 'paid'
assert only_one(l2.rpc.listinvoices('testpayment2')['invoices'])['pay_index'] == 1
assert only_one(l2.rpc.listinvoices('testpayment2')['invoices'])['msatoshi_received'] == rs['msatoshi']
assert only_one(l2.rpc.listinvoices('testpayment2')['invoices'])['payment_preimage'] == preimage
# Balances should reflect it.
def check_balances():