mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
autopilot: trigger agent channel open on new scores
This commit adds a new signal to the autopilot agent, meant to signal when any of the available heuristics has gotten an update. We currently use this to trigger a new channel opening after the external scores have been updated.
This commit is contained in:
2
pilot.go
2
pilot.go
@@ -31,7 +31,7 @@ func validateAtplCfg(cfg *autoPilotConfig) ([]*autopilot.WeightedHeuristic,
|
||||
for _, a := range autopilot.AvailableHeuristics {
|
||||
heuristicsStr += fmt.Sprintf(" '%v' ", a.Name())
|
||||
}
|
||||
availStr := fmt.Sprintf("Avaiblable heuristcs are: [%v]", heuristicsStr)
|
||||
availStr := fmt.Sprintf("Available heuristics are: [%v]", heuristicsStr)
|
||||
|
||||
// We'll go through the config and make sure all the heuristics exists,
|
||||
// and that the sum of their weights is 1.0.
|
||||
|
Reference in New Issue
Block a user