From 8d6d1564c01ab2becfea7082b21ac4231fc11bde Mon Sep 17 00:00:00 2001 From: st4rgut24 Date: Fri, 11 Nov 2022 14:31:04 -0800 Subject: [PATCH] cli: revise help text for addinvoice lncli command [skip ci] --- cmd/lncli/cmd_invoice.go | 2 +- cmd/lncli/invoicesrpc_active.go | 2 +- lnrpc/invoicesrpc/addinvoice.go | 2 +- lnrpc/routerrpc/router_backend.go | 2 +- rpcserver.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/lncli/cmd_invoice.go b/cmd/lncli/cmd_invoice.go index cdb177780..7450ecad1 100644 --- a/cmd/lncli/cmd_invoice.go +++ b/cmd/lncli/cmd_invoice.go @@ -17,7 +17,7 @@ var addInvoiceCommand = cli.Command{ Add a new invoice, expressing intent for a future payment. 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.`, ArgsUsage: "value preimage", Flags: []cli.Flag{ diff --git a/cmd/lncli/invoicesrpc_active.go b/cmd/lncli/invoicesrpc_active.go index 0b51e70f5..17a5e1abb 100644 --- a/cmd/lncli/invoicesrpc_active.go +++ b/cmd/lncli/invoicesrpc_active.go @@ -148,7 +148,7 @@ var addHoldInvoiceCommand = cli.Command{ Add a new invoice, expressing intent for a future payment. 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.`, ArgsUsage: "hash [amt]", Flags: []cli.Flag{ diff --git a/lnrpc/invoicesrpc/addinvoice.go b/lnrpc/invoicesrpc/addinvoice.go index c37ed001d..28ad5ca13 100644 --- a/lnrpc/invoicesrpc/addinvoice.go +++ b/lnrpc/invoicesrpc/addinvoice.go @@ -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. // 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 { options = append(options, zpay32.Amount(amtMSat)) } diff --git a/lnrpc/routerrpc/router_backend.go b/lnrpc/routerrpc/router_backend.go index a372af521..431a650ce 100644 --- a/lnrpc/routerrpc/router_backend.go +++ b/lnrpc/routerrpc/router_backend.go @@ -691,7 +691,7 @@ func (r *RouterBackend) extractIntentFromSendRequest( } // 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 // the payment request. if payReq.MilliSat == nil { diff --git a/rpcserver.go b/rpcserver.go index b75295612..09ba7dae8 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -4851,7 +4851,7 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme } // 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 // the payment request. if payReq.MilliSat == nil {