Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Invoice without amount

7 messages, Jan 6 to 11, 2018. Started by Cezary Dziemian.

Cezary Dziemian (3), ZmnSCPxj, Rusty Russell, Olaoluwa Osuntokun, Johan Torås Halseth

Permalink First message in the Wayback Machine

Cezary Dziemian permalink original

Hello,

It looks "amount" is optional for invoice:

https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md

The issue is I cannot generate such invoice using lnd. This is very important for what we are tryiong to do with LN. Can you confirm, that value will be optional for LN invoice.

Or at least, thet there is some other way to send payment when sender specifies amount.

ZmnSCPxj in reply to Cezary Dziemian permalink original

Good morning Cezary,

Currently, c-lightning can PAY amountless invoices via the "pay" command, but cannot CREATE them via the c-lightning "invoice" command.

To pay an amountless invoice lntb... 4 satoshis in c-lightning: lightning-cli pay lntb.. 4000

However the internals of c-lightning should be able to handle creating amountless invoices (it is only the JSON-RPC command itself which requires the amount, but the rest of the code treats it as optional). I will see what I can do to make creating amountless invoices in c-lightning possible.

Regards, ZmnSCPxj

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Quoted text (16 lines)
> -------- Original Message --------
> Subject: [Lightning-dev] Invoice without amount
> Local Time: January 6, 2018 10:04 PM
> UTC Time: January 6, 2018 2:04 PM
> From: cezary.dziemian at gmail.com
> To: lightning-dev at lists.linuxfoundation.org
>
> Hello,
>
> It looks "amount" is optional for invoice:
>
> https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
>
> The issue is I cannot generate such invoice using lnd. This is very important for what we are tryiong to do with LN. Can you confirm, that value will be optional for LN invoice.
>
> Or at least, thet there is some other way to send payment when sender specifies amount.
Rusty Russell in reply to ZmnSCPxj permalink original

ZmnSCPxj via Lightning-dev <lightning-dev at lists.linuxfoundation.org> writes:

Quoted text (3 lines)
> Good morning Cezary,
>
> Currently, c-lightning can PAY amountless invoices via the "pay" command, but cannot CREATE them via the c-lightning "invoice" command.

Good point, I've filed an issue for this, so we don't lose it:

        https://github.com/ElementsProject/lightning/issues/534
Quoted text (1 line)
> To pay an amountless invoice lntb... 4 satoshis in c-lightning: lightning-cli pay lntb.. 4000

Note that I'd prefer the "msatoshi" field to be a magic string (eg. "any") rather than omitting the parameter, since it's too easy for a bug to omit the parameter.

Cheers, Rusty.

Cezary Dziemian in reply to Rusty Russell permalink original

Good news, thanks.

Do Lightning Labs also have plan to introduce this soon? I prefer to stay with lnd, as we already know this implementation better, but if this option will not be introduced soon, we have to switch to use c-lightning.

Cheers, Cezary

2018-01-09 5:31 GMT+01:00 Rusty Russell <rusty at rustcorp.com.au>:

Quoted text (22 lines)
> ZmnSCPxj via Lightning-dev <lightning-dev at lists.linuxfoundation.org>
> writes:
>
> > Good morning Cezary,
> >
> > Currently, c-lightning can PAY amountless invoices via the "pay"
> command, but cannot CREATE them via the c-lightning "invoice" command.
>
> Good point, I've filed an issue for this, so we don't lose it:
>
>         https://github.com/ElementsProject/lightning/issues/534
>
> > To pay an amountless invoice lntb... 4 satoshis in c-lightning:
> lightning-cli pay lntb.. 4000
>
> Note that I'd prefer the "msatoshi" field to be a magic string
> (eg. "any") rather than omitting the parameter, since it's too easy for
> a bug to omit the parameter.
>
> Cheers,
> Rusty.
>
Olaoluwa Osuntokun in reply to Cezary Dziemian permalink original

Hi Cezary,

I invite you to make an issue on lnd's issue tracker: https://github.com/lightningnetwork/lnd/issues. This list isn't the place for support requests/features for individual implementations.

On Tue, Jan 9, 2018 at 5:21 AM Cezary Dziemian <cezary.dziemian at gmail.com> wrote:

Quoted text (39 lines)
> Good news, thanks.
>
> Do Lightning Labs also have plan to introduce this soon? I prefer to stay
> with lnd, as we already know this implementation better, but if this option
> will not be introduced soon, we have to switch to use c-lightning.
>
> Cheers,
> Cezary
>
> 2018-01-09 5:31 GMT+01:00 Rusty Russell <rusty at rustcorp.com.au>:
>
>> ZmnSCPxj via Lightning-dev <lightning-dev at lists.linuxfoundation.org>
>> writes:
>>
>> > Good morning Cezary,
>> >
>> > Currently, c-lightning can PAY amountless invoices via the "pay"
>> command, but cannot CREATE them via the c-lightning "invoice" command.
>>
>> Good point, I've filed an issue for this, so we don't lose it:
>>
>>         https://github.com/ElementsProject/lightning/issues/534
>>
>> > To pay an amountless invoice lntb... 4 satoshis in c-lightning:
>> lightning-cli pay lntb.. 4000
>>
>> Note that I'd prefer the "msatoshi" field to be a magic string
>> (eg. "any") rather than omitting the parameter, since it's too easy for
>> a bug to omit the parameter.
>>
>> Cheers,
>> Rusty.
>>
>
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://www.learnbitcoin.com/archive/lists/lightning-dev
>
Cezary Dziemian in reply to Olaoluwa Osuntokun permalink original

I made issue 5 days ago: https://github.com/lightningnetwork/lnd/issues/564

2018-01-11 0:21 GMT+01:00 Olaoluwa Osuntokun <laolu32 at gmail.com>:

Quoted text (50 lines)
>
> Hi Cezary,
>
> I invite you to make an issue on lnd's issue tracker: https://github.com/
> lightningnetwork/lnd/issues. This list isn't the place for support
> requests/features for individual implementations.
>
> On Tue, Jan 9, 2018 at 5:21 AM Cezary Dziemian <cezary.dziemian at gmail.com>
> wrote:
>
>> Good news, thanks.
>>
>> Do Lightning Labs also have plan to introduce this soon? I prefer to stay
>> with lnd, as we already know this implementation better, but if this option
>> will not be introduced soon, we have to switch to use c-lightning.
>>
>> Cheers,
>> Cezary
>>
>> 2018-01-09 5:31 GMT+01:00 Rusty Russell <rusty at rustcorp.com.au>:
>>
>>> ZmnSCPxj via Lightning-dev <lightning-dev at lists.linuxfoundation.org>
>>> writes:
>>>
>>> > Good morning Cezary,
>>> >
>>> > Currently, c-lightning can PAY amountless invoices via the "pay"
>>> command, but cannot CREATE them via the c-lightning "invoice" command.
>>>
>>> Good point, I've filed an issue for this, so we don't lose it:
>>>
>>>         https://github.com/ElementsProject/lightning/issues/534
>>>
>>> > To pay an amountless invoice lntb... 4 satoshis in c-lightning:
>>> lightning-cli pay lntb.. 4000
>>>
>>> Note that I'd prefer the "msatoshi" field to be a magic string
>>> (eg. "any") rather than omitting the parameter, since it's too easy for
>>> a bug to omit the parameter.
>>>
>>> Cheers,
>>> Rusty.
>>>
>>
>> _______________________________________________
>> Lightning-dev mailing list
>> Lightning-dev at lists.linuxfoundation.org
>> https://www.learnbitcoin.com/archive/lists/lightning-dev
>>
>
Johan Torås Halseth in reply to Cezary Dziemian permalink original

Hi, Cezary, I initially read the issue you created as a bug filing, my bad. I’ve updated it to reflect that it is a feature request. Cheers! Johan

On Thu, Jan 11, 2018 at 18:16, Cezary Dziemian <cezary.dziemian at gmail.com> wrote: I made issue 5 days ago: https://github.com/lightningnetwork/lnd/issues/564 [https://github.com/lightningnetwork/lnd/issues/564] 2018-01-11 0:21 GMT+01:00 Olaoluwa Osuntokun < laolu32 at gmail.com [laolu32 at gmail.com] > :

Hi Cezary, I invite you to make an issue on lnd's issue tracker: https://github.com/ lightningnetwork/lnd/issues [https://github.com/lightningnetwork/lnd/issues] . This list isn't the place for support requests/features for individual implementations. On Tue, Jan 9, 2018 at 5:21 AM Cezary Dziemian < cezary.dziemian at gmail.com [cezary.dziemian at gmail.com] > wrote: Good news, thanks.

Do Lightning Labs also have plan to introduce this soon? I prefer to stay with lnd, as we already know this implementation better, but if this option will not be introduced soon, we have to switch to use c-lightning.

Cheers, Cezary 2018-01-09 5:31 GMT+01:00 Rusty Russell < rusty at rustcorp.com.au [rusty at rustcorp.com.au] > : ZmnSCPxj via Lightning-dev < lightning-dev at lists. linuxfoundation.org [lightning-dev at lists.linuxfoundation.org] > writes:

Quoted text (3 lines)
> Good morning Cezary,
>
> Currently, c-lightning can PAY amountless invoices via the "pay" command, but cannot CREATE them via the c-lightning "invoice" command.

Good point, I've filed an issue for this, so we don't lose it:

https://github.com/ ElementsProject/lightning/ issues/534 [https://github.com/ElementsProject/lightning/issues/534]

Quoted text (1 line)
> To pay an amountless invoice lntb... 4 satoshis in c-lightning: lightning-cli pay lntb.. 4000

Note that I'd prefer the "msatoshi" field to be a magic string (eg. "any") rather than omitting the parameter, since it's too easy for a bug to omit the parameter.

Cheers, Rusty.

______________________________ _________________ Lightning-dev mailing list Lightning-dev at lists. linuxfoundation.org [Lightning-dev at lists.linuxfoundation.org] https://lists.linuxfoundation. org/mailman/listinfo/ lightning-dev [https://www.learnbitcoin.com/archive/lists/lightning-dev]

_______________________________________________ Lightning-dev mailing list Lightning-dev at lists.linuxfoundation.org https://www.learnbitcoin.com/archive/lists/lightning-dev