Skip to content

Commit

Permalink
Better interfacves (#191)
Browse files Browse the repository at this point in the history
* yay

* lol

* ops

* reverted ep
  • Loading branch information
Giulio2002 authored Aug 11, 2023
1 parent 8038bcc commit 08d7ee9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ message Header {
optional uint64 blob_gas_used = 19; // added in Dencun (EIP-4844)
optional uint64 excess_blob_gas = 20; // added in Dencun (EIP-4844)
optional types.H256 parent_beacon_block_root = 21; // added in Dencun (EIP-4788)
// AuRa
optional uint64 aura_step = 22;
optional bytes aura_seal = 23;
}

// Body is a block body for execution
Expand All @@ -66,6 +69,11 @@ message BlockBody {
repeated types.Withdrawal withdrawals = 5;
}

message Block {
Header header = 1;
BlockBody body = 2;
}

message GetHeaderResponse {
optional Header header = 1;
}
Expand All @@ -88,13 +96,10 @@ message GetSegmentRequest {
optional types.H256 block_hash = 2;
}

message InsertHeadersRequest {
repeated Header headers = 1;
message InsertBlocksRequest {
repeated Block blocks = 1;
}

message InsertBodiesRequest {
repeated BlockBody bodies = 1;
}

message ForkChoice {
types.H256 head_block_hash = 1;
Expand Down Expand Up @@ -147,8 +152,7 @@ message ReadyResponse {

service Execution {
// Chain Putters.
rpc InsertHeaders(InsertHeadersRequest) returns(InsertionResult);
rpc InsertBodies(InsertBodiesRequest) returns(InsertionResult);
rpc InsertBlocks(InsertBlocksRequest) returns(InsertionResult);
// Chain Validation and ForkChoice.
rpc ValidateChain(ValidationRequest) returns(ValidationReceipt);
rpc UpdateForkChoice(ForkChoice) returns(ForkChoiceReceipt);
Expand Down

0 comments on commit 08d7ee9

Please sign in to comment.