Skip to content

Commit

Permalink
doc: Update doc with the new parameter supported
Browse files Browse the repository at this point in the history
Changelog-Added: Support to listpays the status parameter to filter the payments by status.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Aug 13, 2021
1 parent 2b5a0ec commit 94eb9e3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
5 changes: 3 additions & 2 deletions doc/lightning-listpays.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion doc/lightning-listpays.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ lightning-listpays -- Command for querying payment status
SYNOPSIS
--------

**listpays** \[bolt11\] \[payment_hash\]
**listpays** \[bolt11\] \[payment_hash\] \[status\]

DESCRIPTION
-----------

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

RETURN VALUE
------------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4607,7 +4607,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

Expand Down
4 changes: 4 additions & 0 deletions wallet/db_postgres_sqlgen.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions wallet/db_sqlite3_sqlgen.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions wallet/statements_gettextgen.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94eb9e3

Please sign in to comment.