diff --git a/peer/brontide.go b/peer/brontide.go index 01d948beb..f7a01cd11 100644 --- a/peer/brontide.go +++ b/peer/brontide.go @@ -26,6 +26,7 @@ import ( "github.com/lightningnetwork/lnd/chainntnfs" "github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channelnotifier" + "github.com/lightningnetwork/lnd/chanstate" "github.com/lightningnetwork/lnd/contractcourt" "github.com/lightningnetwork/lnd/discovery" "github.com/lightningnetwork/lnd/feature" @@ -259,8 +260,8 @@ type Config struct { // ChannelLinkConfig. InterceptSwitch *htlcswitch.InterceptableSwitch - // ChannelDB is used to fetch opened channels, and closed channels. - ChannelDB *channeldb.ChannelStateDB + // ChannelDB is used to fetch channel state needed by the peer. + ChannelDB chanstate.Store // ChannelGraph is a pointer to the channel graph which is used to // query information about the set of known active channels.