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

Rename payment_parameters_from_zero_amount_invoice to imply amount-less, not 0-amount #2879

Open
TheBlueMatt opened this issue Feb 6, 2024 · 5 comments · May be fixed by #2979
Open

Rename payment_parameters_from_zero_amount_invoice to imply amount-less, not 0-amount #2879

TheBlueMatt opened this issue Feb 6, 2024 · 5 comments · May be fixed by #2979
Labels
good first issue Good for newcomers

Comments

@TheBlueMatt
Copy link
Collaborator

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?

@TheBlueMatt TheBlueMatt added this to the 0.0.122 milestone Feb 6, 2024
@jkczyz
Copy link
Contributor

jkczyz commented Mar 19, 2024

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.

@TheBlueMatt
Copy link
Collaborator Author

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.

@TheBlueMatt TheBlueMatt changed the title Does payment_parameters_from_zero_amount_invoice work for 0-amount invoices Rename payment_parameters_from_zero_amount_invoice to imply amount-less, not 0-amount Mar 20, 2024
@TheBlueMatt TheBlueMatt removed this from the 0.0.122 milestone Mar 20, 2024
@TheBlueMatt TheBlueMatt added the good first issue Good for newcomers label Mar 20, 2024
@tnull
Copy link
Contributor

tnull commented Mar 21, 2024

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.

@srikanth-iyengar
Copy link

I would like to work on this issue, is this up for grabs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
4 participants