lnrpc: add API SetScores

Used to set the external scores for the running autopilot agent.
This commit is contained in:
Johan T. Halseth committed 2019-02-14 11:41:47 +01:00
1 parent 749d9cccca
commit 83edcb7153
3 files changed
+195 -35

No files matched your search

+16
View File
@@ -40,6 +40,13 @@ var (
Entity: "info",
Action: "read",
}},
"/autopilotrpc.Autopilot/SetScores": {{
Entity: "onchain",
Action: "write",
}, {
Entity: "offchain",
Action: "write",
}},
}
)
@@ -206,3 +213,12 @@ func (s *Server) QueryScores(ctx context.Context, in *QueryScoresRequest) (
return resp, nil
}
// SetScores sets the scores of the external score heuristic, if active.
//
// NOTE: Part of the AutopilotServer interface.
func (s *Server) SetScores(ctx context.Context,
in *SetScoresRequest) (*SetScoresResponse, error) {
return &SetScoresResponse{}, nil
}