Skip to content

Commit

Permalink
node: add update poet method
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Jul 15, 2021
1 parent 1052499 commit 425b02c
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 138 deletions.
3 changes: 3 additions & 0 deletions proto/spacemesh/v1/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ service NodeService {
// Request that the node initiate graceful shutdown
rpc Shutdown(ShutdownRequest) returns (ShutdownResponse);

// UpdatePoetServer updates poet server
rpc UpdatePoetServer(UpdatePoetServerRequest) returns (UpdatePoetServerResponse);

////////// Node streaming data

// Node status events (sync and net)
Expand Down
9 changes: 8 additions & 1 deletion proto/spacemesh/v1/node_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ message StatusResponse {
NodeStatus status = 1;
}

message UpdatePoetServerRequest {
string url = 1;
}

message UpdatePoetServerResponse {
google.rpc.Status status = 1;
}

message StatusStreamRequest {}

message StatusStreamResponse {
Expand Down Expand Up @@ -76,4 +84,3 @@ message ErrorStreamRequest {}
message ErrorStreamResponse {
NodeError error = 1;
}

132 changes: 90 additions & 42 deletions release/go/spacemesh/v1/node.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 425b02c

Please sign in to comment.