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

Add get_keys to executor service ProcessBatch call #554

Merged
merged 1 commit into from
Sep 14, 2023
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
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