lnrpc/invoicesrpc: add is_key_send flag to rpc invoice

This commit is contained in:
Joost Jager committed 2019-12-23 21:51:21 +01:00
1 parent 1d5844c196
commit c08865f4ae
4 files changed
+642 -618

No files matched your search

+1
View File
@@ -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 {