jsonrpc: Add amount received by recipient to listpays result

We sum up the amounts just like we do with `amount_sent`, however we may have
parts that don't have that annotation, so make it optional.

Suggested-by: Rusty Russell <@rustyrussell>
This commit is contained in:
Christian Decker
2020-07-27 16:27:30 +02:00
committed by Rusty Russell
parent d7cca0781d
commit 311594b2cd
2 changed files with 45 additions and 9 deletions

View File

@@ -3195,7 +3195,6 @@ def test_pay_fail_unconfirmed_channel(node_factory, bitcoind):
l1.rpc.pay(invl2)
@pytest.mark.xfail(strict=True)
def test_bolt11_null_after_pay(node_factory, bitcoind):
l1, l2 = node_factory.get_nodes(2)