multi: rename key_send, key-send and key send to keysend
This commit is contained in:
13 files changed
+638
-637
No files matched your search
@@ -15,7 +15,7 @@ import (
|
||||
// decodePayReq decodes the invoice payment request if present. This is needed,
|
||||
// because not all information is stored in dedicated invoice fields. If there
|
||||
// is no payment request present, a dummy request will be returned. This can
|
||||
// happen with just-in-time inserted key send invoices.
|
||||
// happen with just-in-time inserted keysend invoices.
|
||||
func decodePayReq(invoice *channeldb.Invoice,
|
||||
activeNetParams *chaincfg.Params) (*zpay32.Invoice, error) {
|
||||
|
||||
@@ -146,7 +146,7 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
|
||||
State: state,
|
||||
Htlcs: rpcHtlcs,
|
||||
Features: CreateRPCFeatures(invoice.Terms.Features),
|
||||
IsKeySend: len(invoice.PaymentRequest) == 0,
|
||||
IsKeysend: len(invoice.PaymentRequest) == 0,
|
||||
}
|
||||
|
||||
if preimage != channeldb.UnknownPreimage {
|
||||
|
||||
+603
-602
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -2575,7 +2575,7 @@ message Invoice {
|
||||
Indicates if this invoice was a spontaneous payment that arrived via keysend
|
||||
[EXPERIMENTAL].
|
||||
*/
|
||||
bool is_key_send = 25 [json_name = "is_key_send"];
|
||||
bool is_keysend = 25 [json_name = "is_keysend"];
|
||||
}
|
||||
|
||||
enum InvoiceHTLCState {
|
||||
|
||||
@@ -2943,7 +2943,7 @@
|
||||
},
|
||||
"description": "/ List of features advertised on the invoice."
|
||||
},
|
||||
"is_key_send": {
|
||||
"is_keysend": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "*\nIndicates if this invoice was a spontaneous payment that arrived via keysend\n[EXPERIMENTAL]."
|
||||
|
||||
Reference in new issue
Block a user