multi: use kvdb.Backend for height hint DB

In order to separate our databases more clearly, we refactor the height
hint cache DB to use a kvdb backend instead of the channel DB instance
directly.
This commit is contained in:
Oliver Gugger committed 2021-08-04 14:55:51 +02:00
1 parent 9138c8abac
commit c4917ae7fc
4 files changed
+26 -14

No files matched your search

+2 -1
View File
@@ -28,6 +28,7 @@ import (
"github.com/lightningnetwork/lnd/htlcswitch"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/lightningnetwork/lnd/lncfg"
"github.com/lightningnetwork/lnd/lnwallet"
"github.com/lightningnetwork/lnd/lnwallet/btcwallet"
@@ -70,7 +71,7 @@ type Config struct {
// HeightHintDB is a pointer to the database that stores the height
// hints.
HeightHintDB *channeldb.DB
HeightHintDB kvdb.Backend
// ChanStateDB is a pointer to the database that stores the channel
// state.