mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
config+lncfg: move config structs to lncfg, drop suffix
This commit is contained in:
7
pilot.go
7
pilot.go
@ -9,6 +9,7 @@ import (
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/lightningnetwork/lnd/autopilot"
|
||||
"github.com/lightningnetwork/lnd/lncfg"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/lightningnetwork/lnd/tor"
|
||||
)
|
||||
@ -17,7 +18,7 @@ import (
|
||||
// configuration is sane. Currently it checks that the heuristic configuration
|
||||
// makes sense. In case the config is valid, it will return a list of
|
||||
// WeightedHeuristics that can be combined for use with the autopilot agent.
|
||||
func validateAtplCfg(cfg *autoPilotConfig) ([]*autopilot.WeightedHeuristic,
|
||||
func validateAtplCfg(cfg *lncfg.AutoPilot) ([]*autopilot.WeightedHeuristic,
|
||||
error) {
|
||||
|
||||
var (
|
||||
@ -138,8 +139,8 @@ var _ autopilot.ChannelController = (*chanController)(nil)
|
||||
// Agent instance based on the passed configuration structs. The agent and all
|
||||
// interfaces needed to drive it won't be launched before the Manager's
|
||||
// StartAgent method is called.
|
||||
func initAutoPilot(svr *server, cfg *autoPilotConfig, chainCfg *chainConfig) (
|
||||
*autopilot.ManagerCfg, error) {
|
||||
func initAutoPilot(svr *server, cfg *lncfg.AutoPilot,
|
||||
chainCfg *lncfg.Chain) (*autopilot.ManagerCfg, error) {
|
||||
|
||||
atplLog.Infof("Instantiating autopilot with active=%v, "+
|
||||
"max_channels=%d, allocation=%f, min_chan_size=%d, "+
|
||||
|
Reference in New Issue
Block a user