autopilot: take channel min htlc from config

This commit is contained in:
Joost Jager
2019-11-25 13:36:40 +01:00
parent b6eb3a69ba
commit 61e114f201
2 changed files with 18 additions and 17 deletions

2
lnd.go
View File

@@ -479,7 +479,7 @@ func Main(lisCfg ListenerCfg) error {
// 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, err := initAutoPilot(server, cfg.Autopilot)
atplCfg, err := initAutoPilot(server, cfg.Autopilot, mainChain)
if err != nil {
err := fmt.Errorf("Unable to initialize autopilot: %v", err)
ltndLog.Error(err)