Skip to content

Commit

Permalink
update to the executor proto to include trace info
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott committed Mar 19, 2024
1 parent 3f477a7 commit 8ddaa63
Show file tree
Hide file tree
Showing 3 changed files with 933 additions and 799 deletions.
9 changes: 8 additions & 1 deletion zk/legacy_executor_verifier/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ func (e *Executor) Verify(p *Payload, erigonStateRoot *common.Hash) (bool, error
TimestampLimit: p.TimestampLimit,
ForcedBlockhashL1: p.ForcedBlockhashL1,
ContextId: p.ContextId,
TraceConfig: &executor.TraceConfigV2{
DisableStorage: 0,
DisableStack: 0,
EnableMemory: 0,
EnableReturnData: 0,
TxHashToGenerateFullTrace: nil,
},
})
if err != nil {
return false, fmt.Errorf("failed to process stateless batch: %w", err)
Expand All @@ -125,7 +132,7 @@ func responseCheck(resp *executor.ProcessBatchResponseV2, erigonStateRoot *commo
return false, fmt.Errorf("nil response")
}
if resp.Error != executor.ExecutorError_EXECUTOR_ERROR_UNSPECIFIED &&
resp.Error != executor.ExecutorError_EXECUTOR_ERROR_NO_ERROR {
resp.Error != executor.ExecutorError_EXECUTOR_ERROR_NO_ERROR {
return false, fmt.Errorf("error in response: %s", resp.Error)
}

Expand Down
Loading

0 comments on commit 8ddaa63

Please sign in to comment.