From 7c8520c7bf24884b2bac885f3b16f54eebd4a650 Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 20 Mar 2024 00:19:34 +0100 Subject: [PATCH] save --- execution/execution.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/execution/execution.proto b/execution/execution.proto index a6ae24e..103c320 100644 --- a/execution/execution.proto +++ b/execution/execution.proto @@ -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); @@ -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);