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

channeldb/invoices: correct stray kvdb.ReadBucket to RBucket
This commit is contained in:
Joost Jager 2020-05-28 07:25:58 +02:00 committed by GitHub
commit 24c865450a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()