pay: listpays groups by payment_hash and groupid

Fixes #4482
Fixes #4481

Changelog-Added: pay: Payment attempts are now grouped by the pay command that initiated them
Changelog-Fixed: pay: `listpays` returns payments orderd by their creation date
Changelog-Fixed: pay: `listpays` no longer groups attempts from multiple attempts to pay an invoice
This commit is contained in:
Christian Decker
2021-05-28 22:04:04 +02:00
committed by Rusty Russell
parent 49cddaff3d
commit cd7d87f98e
2 changed files with 48 additions and 40 deletions

View File

@@ -4851,7 +4851,6 @@ def test_listpays_with_filter_by_status(node_factory, bitcoind):
assert len(l2.rpc.listpays()['pays']) == 1
@pytest.mark.xfail(strict=True)
def test_sendpay_grouping(node_factory, bitcoind):
"""Paying an invoice multiple times, listpays should list them individually
"""