diff --git a/spacemesh/v1/post.proto b/spacemesh/v1/post.proto index bee9cedc..8c121238 100644 --- a/spacemesh/v1/post.proto +++ b/spacemesh/v1/post.proto @@ -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); +} \ No newline at end of file diff --git a/spacemesh/v1/post_types.proto b/spacemesh/v1/post_types.proto index ab8ca0f7..64b35138 100644 --- a/spacemesh/v1/post_types.proto +++ b/spacemesh/v1/post_types.proto @@ -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; +} \ No newline at end of file