Skip to content

Commit

Permalink
Merge pull request #554 from 0xPolygonHermez/fractasy_hashdb_64
Browse files Browse the repository at this point in the history
Add get_keys to executor service ProcessBatch call
  • Loading branch information
fractasy authored Sep 14, 2023
2 parents 4fcffd3 + 6af2bd1 commit 33a3055
Show file tree
Hide file tree
Showing 12 changed files with 2,153 additions and 233 deletions.
551 changes: 322 additions & 229 deletions src/grpc/gen/executor.pb.cc

Large diffs are not rendered by default.

234 changes: 233 additions & 1 deletion src/grpc/gen/executor.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/grpc/proto/executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ message ProcessBatchRequest {
map<string, string> contracts_bytecode = 14; // For debug/testing purpposes only. Don't fill this on production
TraceConfig trace_config = 15;
string external_request_id = 16;
uint32 get_keys = 17; // if 1, the keys used to read or write storage values will be returned
}

message ProcessBatchResponse {
Expand All @@ -53,6 +54,8 @@ message ProcessBatchResponse {
uint64 flush_id = 16;
uint64 stored_flush_id = 17;
string prover_id = 18;
repeated bytes nodes_keys = 19;
repeated bytes program_keys = 20;
}

/**
Expand Down Expand Up @@ -475,4 +478,6 @@ enum ExecutorError {
EXECUTOR_ERROR_INVALID_CONTRACTS_BYTECODE_KEY = 78;
// EXECUTOR_ERROR_INVALID_CONTRACTS_BYTECODE_VALUE indicates that the input parameter contracts_bytecode value is invalid
EXECUTOR_ERROR_INVALID_CONTRACTS_BYTECODE_VALUE = 79;
// EXECUTOR_ERROR_INVALID_GET_KEY indicates that the input parameter get key is invalid, e.g. is true but fork_id<5
EXECUTOR_ERROR_INVALID_GET_KEY = 80;
}
Loading

0 comments on commit 33a3055

Please sign in to comment.