Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-rpc: Add support for querying by hash or bolt11 to listinvoices #4312

Merged
merged 3 commits into from
Jan 6, 2021

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Jan 5, 2021

A user reported that it is sometimes cumbersome to search an invoice
based on the payment hash or the bolt11 string in the full list, which
may be required when we don't have the label available.

This adds support for querying / filtering based on the payment_hash
or bolt11 string.

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack 7f128b1

Only one minor thing: maybe rename 'bolt11' to 'invstring', as suggested by the offers branch? It's going to be an anachronism one day.

@cdecker
Copy link
Member Author

cdecker commented Jan 6, 2021

Re-applying Rusty's ACK after renaming bolt11 to invstring.

ACK 4921610

A user reported that it is sometimes cumbersome to search an invoice
based on the payment hash or the bolt11 string in the full list, which
may be required when we don't have the label available.

This adds support for querying / filtering based on the `payment_hash`
or `bolt11` string.

Changelog-Added: JSON-RPC: `listinvoices` can now query for an invoice matching a `payment_hash` or a `bolt11` string, in addition to `label`
We now have some more logic in the query, so let's test it
exhaustively.
@cdecker cdecker added this to the v0.9.3 milestone Jan 6, 2021
@cdecker cdecker merged commit a1d33c3 into ElementsProject:master Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants