Skip to content

Commit

Permalink
Basic post-service operator API
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Oct 25, 2023
1 parent cf5fa12 commit f2516cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spacemesh/v1/post.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ service PostService {
// The node will send NodeRequets to PoST and the service will respond with ServiceResponses.
rpc Register(stream ServiceResponse) returns (stream NodeRequest);
}

service PostServiceOperator {
rpc Status(PostServiceStatusRequest) returns (PostServiceStatusResponse);
}
12 changes: 12 additions & 0 deletions spacemesh/v1/post_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ message MetadataRequest {}
message MetadataResponse {
Metadata meta = 1;
}


message PostServiceStatusRequest {}

message PostServiceStatusResponse {
enum Status {
_UNUSED = 0;
IDLE = 1;
PROVING = 2;
}
Status status = 1;
}

0 comments on commit f2516cf

Please sign in to comment.