mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
Merge pull request #4331 from cfromknecht/stray-read-bucket
channeldb/invoices: correct stray kvdb.ReadBucket to RBucket
This commit is contained in:
commit
24c865450a
@ -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…
Reference in New Issue
Block a user