Skip to content

Conversation

@thomash-acinq
Copy link
Member

Offers or invoices where the fields offer_chains, offer_paths, invoice_paths, invoice_blindedpay are present but empty are considered invalid. While the spec does not necessarily rejects them explicitly, they can't be paid.

Offers or invoices where the fields `offer_chains`, `offer_paths`, `invoice_paths`, `invoice_blindedpay` are present but empty are considered invalid.
While the spec does not necessarily rejects them explicitly, they can't be paid.
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Can you also add the test vector you added to lightning-kmp? Is there a reason why it wasn't included?

Copy link
Member Author

@thomash-acinq thomash-acinq left a comment

Choose a reason for hiding this comment

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

The test vector from lightning-kmp was already behaving well in eclair before this PR. I've now added a similar test for each of the field I've modified.

@thomash-acinq thomash-acinq merged commit abe2cc9 into master Sep 22, 2025
1 of 2 checks passed
@thomash-acinq thomash-acinq deleted the empty-offer branch September 22, 2025 14:40
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.

3 participants