lnrpc/invoicesrpc: remove lnrpc type from add invoice

This commit is contained in:
Joost Jager
2019-01-15 10:06:48 +01:00
parent b9cc165341
commit 8392f6d28f
4 changed files with 102 additions and 50 deletions

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) {