Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Jul 23, 2023
1 parent f441a40 commit 5fb6594
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,24 @@ message ForkChoice {
optional types.H256 safe_block_hash = 4;
}

message EmptyMessage {}
message InsertionResult {
ValidationStatus result = 1;
}

service Execution {
// Chain Putters.
rpc InsertHeaders(InsertHeadersRequest) returns(EmptyMessage);
rpc InsertBodies(InsertBodiesRequest) returns(EmptyMessage);
rpc InsertHeaders(InsertHeadersRequest) returns(InsertionResult);
rpc InsertBodies(InsertBodiesRequest) returns(InsertionResult);
// Chain Validation and ForkChoice.
rpc ValidateChain(types.H256) returns(ValidationReceipt);
rpc UpdateForkChoice(ForkChoice) returns(ForkChoiceReceipt);
rpc AssembleBlock(EmptyMessage) returns(types.ExecutionPayload); // Builds on top of current head.
rpc AssembleBlock(google.protobuf.Empty) returns(types.ExecutionPayload); // Builds on top of current head.
// Chain Getters.
rpc GetHeader(GetSegmentRequest) returns(GetHeaderResponse);
rpc GetBody(GetSegmentRequest) returns(GetBodyResponse);
rpc IsCanonicalHash(types.H256) returns(IsCanonicalResponse);
rpc GetHeaderHashNumber(types.H256) returns(GetHeaderHashNumberResponse);
rpc GetForkChoice(EmptyMessage) returns(ForkChoice);
rpc GetForkChoice(google.protobuf.Empty) returns(ForkChoice);
}


0 comments on commit 5fb6594

Please sign in to comment.