Browse Source

Merge pull request #4331 from cfromknecht/stray-read-bucket

channeldb/invoices: correct stray kvdb.ReadBucket to RBucket
master
Joost Jager 4 years ago committed by GitHub
parent
commit
24c865450a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      channeldb/invoices.go

2
channeldb/invoices.go

@ -654,7 +654,7 @@ func (d *DB) LookupInvoice(ref InvoiceRef) (Invoice, error) {
// reference. The payment address will be treated as the primary key, falling
// back to the payment hash if nothing is found for the payment address. An
// error is returned if the invoice is not found.
func fetchInvoiceNumByRef(invoiceIndex, payAddrIndex kvdb.ReadBucket,
func fetchInvoiceNumByRef(invoiceIndex, payAddrIndex kvdb.RBucket,
ref InvoiceRef) ([]byte, error) {
payHash := ref.PayHash()

Loading…
Cancel
Save