lnrpc: add API SetScores
Used to set the external scores for the running autopilot agent.
This commit is contained in:
3 files changed
+195
-35
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user