Skip to content

Commit

Permalink
Added HasBlock (#211)
Browse files Browse the repository at this point in the history
* save

* save
  • Loading branch information
Giulio2002 authored Mar 20, 2024
1 parent 43e494b commit ff1a8fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions downloader/downloader.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ message StatsRequest {
}

message ProhibitNewDownloadsRequest {
string type = 1;
}

message StatsReply {
Expand Down
5 changes: 5 additions & 0 deletions execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ message FrozenBlocksResponse {
uint64 frozen_blocks = 1;
}

message HasBlockResponse {
bool has_block = 1;
}

service Execution {
// Chain Putters.
rpc InsertBlocks(InsertBlocksRequest) returns(InsertionResult);
Expand All @@ -184,6 +188,7 @@ service Execution {
rpc GetTD(GetSegmentRequest) returns(GetTDResponse);
rpc GetHeader(GetSegmentRequest) returns(GetHeaderResponse);
rpc GetBody(GetSegmentRequest) returns(GetBodyResponse);
rpc HasBlock(GetSegmentRequest) returns(HasBlockResponse);
// Ranges
rpc GetBodiesByRange(GetBodiesByRangeRequest) returns(GetBodiesBatchResponse);
rpc GetBodiesByHashes(GetBodiesByHashesRequest) returns(GetBodiesBatchResponse);
Expand Down

0 comments on commit ff1a8fb

Please sign in to comment.