mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
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:
committed by
Rusty Russell
parent
98623aaff8
commit
62ef403d20
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user