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

update executor proto #2122

Merged
merged 2 commits into from
May 25, 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
4 changes: 4 additions & 0 deletions proto/src/proto/executor/v1/executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ message ProcessBatchRequest {
map<string, string> db = 13;
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;
}

message ProcessBatchResponse {
Expand Down Expand Up @@ -164,6 +165,9 @@ message ProcessTransactionResponse {
// Trace
repeated ExecutionTraceStep execution_trace = 13;
CallTrace call_trace = 14;
// Efective Gas Price
string effective_gas_price = 15;
uint32 effective_percentage = 16;
}

message Log {
Expand Down
2 changes: 2 additions & 0 deletions state/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ func (s *State) convertToProcessTransactionResponse(txs []types.Transaction, res
result.ChangesStateRoot = IsStateRootChanged(response.Error)
result.ExecutionTrace = *trace
result.CallTrace = convertToExecutorTrace(response.CallTrace)
result.EffectiveGasPrice = response.EffectiveGasPrice
result.EffectivePercentage = response.EffectivePercentage
result.Tx = txs[i]

_, err = DecodeTx(common.Bytes2Hex(response.GetRlpTx()))
Expand Down
Loading