Skip to content

Commit

Permalink
old-faithful-proto: fix GetBlockTime response type
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jul 4, 2024
1 parent 56e88b8 commit 9afc3a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions old-faithful-proto/proto/old-faithful.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ option go_package = "github.com/rpcpool/yellowstone-faithful/old-faithful-proto;
service OldFaithful {
rpc GetVersion(VersionRequest) returns (VersionResponse);

rpc GetBlockTime(BlockTimeRequest) returns (BlockTimeResponse);
rpc GetBlock(BlockRequest) returns (BlockResponse);
rpc GetBlockTime(BlockTimeRequest) returns (BlockTimeResponse);
rpc GetTransaction(TransactionRequest) returns (TransactionResponse);

rpc Get(stream GetRequest) returns (stream GetResponse);
Expand All @@ -19,14 +19,6 @@ message VersionResponse {
string version = 1;
}

message BlockTimeRequest {
uint64 slot = 1;
}

message BlockTimeResponse {
uint64 block_time = 1;
}

message BlockRequest {
uint64 slot = 1;
}
Expand All @@ -42,6 +34,14 @@ message BlockResponse {
bytes rewards = 8; // protobuf or bincode (or empty)
}

message BlockTimeRequest {
uint64 slot = 1;
}

message BlockTimeResponse {
int64 block_time = 1;
}

message TransactionRequest {
bytes signature = 1;
}
Expand Down

0 comments on commit 9afc3a1

Please sign in to comment.