Skip to content

Commit

Permalink
Merge pull request #248 from spacemeshos/add-max-height-atx
Browse files Browse the repository at this point in the history
activation service: add Highest rpc
  • Loading branch information
countvonzero authored Jul 6, 2023
2 parents 6d4b4a4 + b554d3d commit 3f1778a
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 26 deletions.
69 changes: 59 additions & 10 deletions release/go/spacemesh/v1/activation.pb.go

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

97 changes: 81 additions & 16 deletions release/go/spacemesh/v1/activation_types.pb.go

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

4 changes: 4 additions & 0 deletions spacemesh/v1/activation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ package spacemesh.v1;
option go_package = "github.com/spacemeshos/api/release/go/spacemesh/v1";

import "spacemesh/v1/activation_types.proto";
import "google/protobuf/empty.proto";

// Exposes services to query activation transactions
service ActivationService {
// Get a single activation transaction
rpc Get(GetRequest) returns (GetResponse);

// Highest returns the atx id with the highest tick count.
rpc Highest(google.protobuf.Empty) returns (HighestResponse);
}
4 changes: 4 additions & 0 deletions spacemesh/v1/activation_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ message GetRequest {
message GetResponse {
Activation atx = 1;
}

message HighestResponse {
Activation atx = 1;
}

0 comments on commit 3f1778a

Please sign in to comment.