lnd/autopilot
Johan T. Halseth dbf7b380a9
autopilot/manager: only set m.pilot if started successfully
This commit fixes a subtle bug within the autopilot manager, that would
cause the active pilot to not be reset in case it wasn't started
successfully.

We also make sure the associated goroutines close over the started
pilot, and not the active pilot.
2018-12-19 19:48:44 +01:00
..
agent_test.go autopilot/agent_test: let agent self-trigger retry 2018-12-11 10:21:40 +01:00
agent.go autopilot/agent: move choice algorithms to new file choice.go 2018-12-10 13:53:31 +01:00
choice.go autopilot/choice: return ErrNoPositive in case no choice can be made 2018-12-10 13:53:36 +01:00
graph.go autopilot/graph: define addRandNode 2018-12-10 15:01:43 +01:00
heuristic_constraints.go autopilot: define HeuristicConstraints 2018-12-06 11:20:09 +01:00
interface.go autopilot/interface+agent: remove Select 2018-12-06 14:26:28 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
manager.go autopilot/manager: only set m.pilot if started successfully 2018-12-19 19:48:44 +01:00
prefattach_test.go autopilot/prefattach_test: ensure non-connected nodes get 0-score 2018-12-10 15:05:24 +01:00
prefattach.go autopilot/prefattach: skip nodes having no channels 2018-12-10 15:01:43 +01:00