mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 11:11:53 +01:00
lnrpc/invoicesrpc: add is_key_send flag to rpc invoice
This commit is contained in:
parent
1d5844c196
commit
c08865f4ae
@ -146,6 +146,7 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
|
||||
State: state,
|
||||
Htlcs: rpcHtlcs,
|
||||
Features: CreateRPCFeatures(invoice.Terms.Features),
|
||||
IsKeySend: len(invoice.PaymentRequest) == 0,
|
||||
}
|
||||
|
||||
if preimage != channeldb.UnknownPreimage {
|
||||
|
1248
lnrpc/rpc.pb.go
1248
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@ -2545,6 +2545,12 @@ message Invoice {
|
||||
|
||||
/// List of features advertised on the invoice.
|
||||
map<uint32, Feature> features = 24 [json_name = "features"];
|
||||
|
||||
/**
|
||||
Indicates if this invoice was a spontaneous payment that arrived via keysend
|
||||
[EXPERIMENTAL].
|
||||
*/
|
||||
bool is_key_send = 25 [json_name = "is_key_send"];
|
||||
}
|
||||
|
||||
enum InvoiceHTLCState {
|
||||
|
@ -2896,6 +2896,11 @@
|
||||
"$ref": "#/definitions/lnrpcFeature"
|
||||
},
|
||||
"description": "/ List of features advertised on the invoice."
|
||||
},
|
||||
"is_key_send": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "*\nIndicates if this invoice was a spontaneous payment that arrived via keysend\n[EXPERIMENTAL]."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user