multi: rename key_send, key-send and key send to keysend

This commit is contained in:
Conner Fromknecht committed 2020-01-16 18:37:16 -08:00
1 parent 3aba0f1eaf
commit 51dbdd3b38
13 files changed
+638 -637

No files matched your search

+2 -2
View File
@@ -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
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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]."