lnd+pilot: use WeightedCombAttachment

We make the default autopilot agent use the WeightedCombAttachment.
Currently it uses only one sub-heuristic, prefAttachment.
This commit is contained in:
Johan T. Halseth committed 2019-01-21 09:44:38 +01:00
1 parent bdbadeaa75
commit f48c8f91c4
2 files changed
+20 -5

No files matched your search

+7 -2
View File
@@ -313,10 +313,15 @@ func lndMain() error {
return err
}
// Set up an auotpilot manager from the current config. This will be
// Set up an autopilot manager from the current config. This will be
// used to manage the underlying autopilot agent, starting and stopping
// it at will.
atplCfg := initAutoPilot(server, cfg.Autopilot)
atplCfg, err := initAutoPilot(server, cfg.Autopilot)
if err != nil {
ltndLog.Errorf("unable to init autopilot: %v", err)
return err
}
atplManager, err := autopilot.NewManager(atplCfg)
if err != nil {
ltndLog.Errorf("unable to create autopilot manager: %v", err)