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
Rename payment_parameters_from_zero_amount_invoice
to imply amount-less, not 0-amount
#2879
Comments
Hmm... do you have more background on this issue? I always thought "zero-amount" was synonymous with "amount-less" but that the latter was the accurate term. |
Here are old issues from other implementations for amount-less invoices: |
Oh, okay, nevermind. I managed to completely confuse myself based on the "0 amount" name. We should probably rename the references to it so that its less confusing for others. |
payment_parameters_from_zero_amount_invoice
work for 0-amount invoicespayment_parameters_from_zero_amount_invoice
to imply amount-less, not 0-amount
FWIW, in LDK Node we use a "variable amount" naming pattern, but mention "zero-amount" in the docs as users might try to find the functionality by this (confusing) name. |
I would like to work on this issue, is this up for grabs ? |
lightning-invoice
treats missing amount differently from set amounts, but the whole zero-amount thing is about...zero amounts. Do we actually support zero amounts properly or only invoices with no amount (which presumably other lightning nodes can't create)? Should we be refusing to deserialize invoices with no amount at all?The text was updated successfully, but these errors were encountered: