Skip to content

Commit

Permalink
Merge branch 'develop' into pbss_wp
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang authored Apr 10, 2024
2 parents a3f75e9 + 3813e13 commit 225b376
Show file tree
Hide file tree
Showing 41 changed files with 2,463 additions and 138 deletions.
4 changes: 4 additions & 0 deletions cmd/evm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ var (
Usage: "enable return data output",
Category: flags.VMCategory,
}
VMOpcodeOptimizeFlag = &cli.BoolFlag{
Name: "vm.opcode.optimize",
Usage: "enable opcode optimization",
}
)

var stateTransitionCommand = &cli.Command{
Expand Down
3 changes: 2 additions & 1 deletion cmd/evm/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ func runCmd(ctx *cli.Context) error {
BlobHashes: blobHashes,
BlobBaseFee: blobBaseFee,
EVMConfig: vm.Config{
Tracer: tracer,
Tracer: tracer,
EnableOpcodeOptimizations: ctx.Bool(VMOpcodeOptimizeFlag.Name),
},
}

Expand Down
Loading

0 comments on commit 225b376

Please sign in to comment.