doc: Update doc with the new parameter supported

Changelog-Added: Support to listpays the status parameter to filter the payments by status.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo
2021-07-22 09:24:18 +02:00
committed by Rusty Russell
parent 98623aaff8
commit 62ef403d20
6 changed files with 153 additions and 4 deletions

View File

@@ -4630,7 +4630,7 @@ def test_listpays_with_filter_by_status(node_factory, bitcoind):
wait_for(lambda: l2.rpc.listpays(inv['bolt11'])['pays'][0]['status'] == 'complete')
# test if the node is still ready
payments = l2.rpc.call("listpays", {"status": 'failed'})
payments = l2.rpc.listpays(status='failed')
assert len(payments['pays']) == 0