mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-14 12:42:48 +02:00
peer: depend on chanstate Store
Replace the peer config's concrete channel state DB dependency with chanstate.Store. Brontide only needs channel lookups, closed-channel lookup, and initial forwarding policy access from the channel-state store.
This commit is contained in:
parent
ae9de8d078
commit
d08b1b07c7
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue