Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added HasBlock #211

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading