mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 22:32:42 +02:00
channeldb+routing: move control tower interface to routing
This commit creates an empty shall for control tower in the routing package. It is a preparation for adding event notification.
This commit is contained in:
@@ -649,12 +649,14 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
|
||||
routerrpc.GetMissionControlConfig(cfg.SubRPCServers.RouterRPC),
|
||||
)
|
||||
|
||||
paymentControl := channeldb.NewPaymentControl(chanDB)
|
||||
|
||||
s.chanRouter, err = routing.New(routing.Config{
|
||||
Graph: chanGraph,
|
||||
Chain: cc.chainIO,
|
||||
ChainView: cc.chainView,
|
||||
Payer: s.htlcSwitch,
|
||||
Control: channeldb.NewPaymentControl(chanDB),
|
||||
Control: routing.NewControlTower(paymentControl),
|
||||
MissionControl: s.missionControl,
|
||||
ChannelPruneExpiry: routing.DefaultChannelPruneExpiry,
|
||||
GraphPruneInterval: time.Duration(time.Hour),
|
||||
|
Reference in New Issue
Block a user