autopilot+autopilotrpc: ignore local channels if ignore_local_state set

This commit is contained in:
Johan T. Halseth
2019-03-18 14:41:45 +01:00
parent c7ab6f3603
commit d4813422c9
2 changed files with 30 additions and 19 deletions

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
}