Skip to content

Commit 62ef403

Browse files
vincenzopalazzorustyrussell
authored andcommitted
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>
1 parent 98623aa commit 62ef403

File tree

6 files changed

+153
-4
lines changed

6 files changed

+153
-4
lines changed

doc/lightning-listpays.7

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/lightning-listpays.7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ lightning-listpays -- Command for querying payment status
44
SYNOPSIS
55
--------
66

7-
**listpays** \[bolt11\] \[payment_hash\]
7+
**listpays** \[bolt11\] \[payment_hash\] \[status\]
88

99
DESCRIPTION
1010
-----------
1111

1212
The **listpay** RPC command gets the status of all *pay* commands, or a
1313
single one if either *bolt11* or *payment_hash* was specified.
14+
It is possible filter the payments also by status.
1415

1516
RETURN VALUE
1617
------------

tests/test_pay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4630,7 +4630,7 @@ def test_listpays_with_filter_by_status(node_factory, bitcoind):
46304630
wait_for(lambda: l2.rpc.listpays(inv['bolt11'])['pays'][0]['status'] == 'complete')
46314631

46324632
# test if the node is still ready
4633-
payments = l2.rpc.call("listpays", {"status": 'failed'})
4633+
payments = l2.rpc.listpays(status='failed')
46344634

46354635
assert len(payments['pays']) == 0
46364636

wallet/db_postgres_sqlgen.c

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wallet/db_sqlite3_sqlgen.c

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wallet/statements_gettextgen.po

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)