lnrpc/invoicesrpc: remove lnrpc type from add invoice

This commit is contained in:
Joost Jager committed 2019-03-15 10:08:52 +01:00
1 parent b9cc165341
commit 8392f6d28f
4 files changed
+102 -50

No files matched your search

+2 -1
View File
@@ -380,7 +380,8 @@ func (i *InvoiceRegistry) AddDebugInvoice(amt btcutil.Amount,
// daemon add/forward HTLCs are able to obtain the proper preimage required for
// redemption in the case that we're the final destination. We also return the
// addIndex of the newly created invoice which monotonically increases for each
// new invoice added.
// new invoice added. A side effect of this function is that it also sets
// AddIndex on the invoice argument.
func (i *InvoiceRegistry) AddInvoice(invoice *channeldb.Invoice,
paymentHash lntypes.Hash) (uint64, error) {