Skip to content

offers: fix crash when receiving response to offer without offer_issuser_id #7525

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

Merged

Conversation

rustyrussell
Copy link
Contributor

Now we actually check the other fields too, as per BOLT!

Reported-by: https://github.com/hMsats
Fixes: #7513

@rustyrussell rustyrussell added this to the v24.08 milestone Aug 5, 2024
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK 9de4619

Guessing that it need just a rebase on master?

FAILED tests/test_pay.py::test_offer_experimental_fields - AssertionError: Regex pattern did not match.
 Regex: 'Unknown offer'
 Input: "RPC call failed: method: fetchinvoice, payload: ('lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq59r5v4ehghm0venx2ujlwpshg6zlwdjkceskyypxdeze35wncs2l2u4gfzyrpds00e6yakfrt6ctrw5n9qanzhqr2x878wdv5qgpqq',), error: {'code': 1005, 'message': 'Timeout waiting for response'}"

…uer_id`

Now we actually check the other fields too, as per BOLT!

Reported-by: https://github.com/hMsats
Fixes: ElementsProject#7513
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Copy link
Collaborator

@niftynei niftynei left a comment

Choose a reason for hiding this comment

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

ACK 3007dfc

@ShahanaFarooqui ShahanaFarooqui merged commit 8dbc1c5 into ElementsProject:master Aug 7, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using fetchinvoice on a Phoenix Bolt12 offer crashes CLN
4 participants