Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Aug 25, 2023
1 parent a8f70b6 commit 3f5363b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,19 @@ message GetAssembledBlockResponse {
bool busy = 2;
}

message GetBodiesBatchResponse {
repeated BlockBody bodies = 1;
}

message GetBodiesByHashesRequest {
repeated types.H256 hashes = 1;
}

message GetBodiesByRangeRequest {
uint64 start = 1;
uint64 count = 2;
}

message ReadyResponse {
bool ready = 1;
}
Expand All @@ -165,6 +178,10 @@ service Execution {
rpc GetTD(GetSegmentRequest) returns(GetTDResponse);
rpc GetHeader(GetSegmentRequest) returns(GetHeaderResponse);
rpc GetBody(GetSegmentRequest) returns(GetBodyResponse);
// Ranges
rpc GetBodiesByRange(GetBodiesByRangeRequest) returns(GetBodiesBatchResponse);
rpc GetBodiesByHashes(GetBodiesByHashesRequest) returns(GetBodiesBatchResponse);
// Chain checkers
rpc IsCanonicalHash(types.H256) returns(IsCanonicalResponse);
rpc GetHeaderHashNumber(types.H256) returns(GetHeaderHashNumberResponse);
rpc GetForkChoice(google.protobuf.Empty) returns(ForkChoice);
Expand Down

0 comments on commit 3f5363b

Please sign in to comment.