autopilot+autopilotrpc: ignore local channels if ignore_local_state set

This commit is contained in:
Johan T. Halseth committed 2019-03-18 14:43:40 +01:00
1 parent c7ab6f3603
commit d4813422c9
2 files changed
+30 -19

No files matched your search

+3 -1
View File
@@ -180,7 +180,9 @@ func (s *Server) QueryScores(ctx context.Context, in *QueryScoresRequest) (
}
// Query the heuristics.
heuristicScores, err := s.manager.QueryHeuristics(nodes)
heuristicScores, err := s.manager.QueryHeuristics(
nodes, !in.IgnoreLocalState,
)
if err != nil {
return nil, err
}