-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle feature-less BOLT 11 invoices (#687)
We were not handling correctly feature-less invoices, which are spec-compliant. We do reject invoices that don't have `var_onion_optin`, but the check happens later. Instead, we currently throw a `NullPointerException`. The way we are checking requirements in the `init` block requires lazy-init properties, otherwise the object initialization will fail before any logic can happen. Also, as per the spec, the feature tag must be skipped at serialization if there are no features enabled.
- Loading branch information
Showing
2 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters