mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 18:43:57 +02:00
Merge pull request #7135 from st4rgut24/revise-addinvoice-help-text
revise help text for addinvoice lncli command
This commit is contained in:
@@ -17,7 +17,7 @@ var addInvoiceCommand = cli.Command{
|
|||||||
Add a new invoice, expressing intent for a future payment.
|
Add a new invoice, expressing intent for a future payment.
|
||||||
|
|
||||||
Invoices without an amount can be created by not supplying any
|
Invoices without an amount can be created by not supplying any
|
||||||
parameters or providing an amount of 0. These invoices allow the payee
|
parameters or providing an amount of 0. These invoices allow the payer
|
||||||
to specify the amount of satoshis they wish to send.`,
|
to specify the amount of satoshis they wish to send.`,
|
||||||
ArgsUsage: "value preimage",
|
ArgsUsage: "value preimage",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
|
@@ -148,7 +148,7 @@ var addHoldInvoiceCommand = cli.Command{
|
|||||||
Add a new invoice, expressing intent for a future payment.
|
Add a new invoice, expressing intent for a future payment.
|
||||||
|
|
||||||
Invoices without an amount can be created by not supplying any
|
Invoices without an amount can be created by not supplying any
|
||||||
parameters or providing an amount of 0. These invoices allow the payee
|
parameters or providing an amount of 0. These invoices allow the payer
|
||||||
to specify the amount of satoshis they wish to send.`,
|
to specify the amount of satoshis they wish to send.`,
|
||||||
ArgsUsage: "hash [amt]",
|
ArgsUsage: "hash [amt]",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
|
@@ -284,7 +284,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
|
|||||||
|
|
||||||
// We only include the amount in the invoice if it is greater than 0.
|
// We only include the amount in the invoice if it is greater than 0.
|
||||||
// By not including the amount, we enable the creation of invoices that
|
// By not including the amount, we enable the creation of invoices that
|
||||||
// allow the payee to specify the amount of satoshis they wish to send.
|
// allow the payer to specify the amount of satoshis they wish to send.
|
||||||
if amtMSat > 0 {
|
if amtMSat > 0 {
|
||||||
options = append(options, zpay32.Amount(amtMSat))
|
options = append(options, zpay32.Amount(amtMSat))
|
||||||
}
|
}
|
||||||
|
@@ -691,7 +691,7 @@ func (r *RouterBackend) extractIntentFromSendRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the amount was not included in the invoice, then we let
|
// If the amount was not included in the invoice, then we let
|
||||||
// the payee specify the amount of satoshis they wish to send.
|
// the payer specify the amount of satoshis they wish to send.
|
||||||
// We override the amount to pay with the amount provided from
|
// We override the amount to pay with the amount provided from
|
||||||
// the payment request.
|
// the payment request.
|
||||||
if payReq.MilliSat == nil {
|
if payReq.MilliSat == nil {
|
||||||
|
@@ -4851,7 +4851,7 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the amount was not included in the invoice, then we let
|
// If the amount was not included in the invoice, then we let
|
||||||
// the payee specify the amount of satoshis they wish to send.
|
// the payer specify the amount of satoshis they wish to send.
|
||||||
// We override the amount to pay with the amount provided from
|
// We override the amount to pay with the amount provided from
|
||||||
// the payment request.
|
// the payment request.
|
||||||
if payReq.MilliSat == nil {
|
if payReq.MilliSat == nil {
|
||||||
|
Reference in New Issue
Block a user