Skip to content

Flag for EVM v2 --Xevm-go-fast / --Xevm-v2#10109

Closed
siladu wants to merge 1 commit intobesu-eth:mainfrom
siladu:evmv2-flag
Closed

Flag for EVM v2 --Xevm-go-fast / --Xevm-v2#10109
siladu wants to merge 1 commit intobesu-eth:mainfrom
siladu:evmv2-flag

Conversation

@siladu
Copy link
Copy Markdown
Contributor

@siladu siladu commented Mar 26, 2026

Introduces an evm v2 flag (disabled by default) that currently only logs when it's enabled, either in Besu startup config or evmtool

Changes:

  • Add enableEvmV2 field to EvmConfiguration (default false)
  • Wire --Xevm-go-fast hidden CLI flag in EvmOptions and evmtool
  • ConfigurationOverviewBuilder: prints EVM v2 notice when enabled; suppresses redundant opcode-optimizations line in that mode
  • evmtool: execution-strategy wrapper prints v2 notice before any subcommand, covering benchmark (which never calls getEvmConfiguration via Dagger)
  • --Xevm-v2 added as CLI alias alongside --Xevm-go-fast

Logging when flag enabled...

$ evmtool --Xevm-v2 true block-test
EVM v2 (long[] stack) enabled
$ evmtool --Xevm-v2 true benchmark
EVM v2 (long[] stack) enabled
$ besu --Xevm-v2 true
2026-03-26 14:14:06.059+1000 | main | INFO  | Besu | Starting Besu
...
2026-03-26 14:14:06.994+1000 | main | INFO  | Besu |
####################################################################################################
#                                                                                                  #
# Besu version 26.3-develop-66b64f7                                                                #
...
# Experimental EVM v2 (long[] stack) enabled                                                       #
...

Introduces an evm v2 flag (disabled by default) that currently only logs when it's enabled, either in Besu startup config or evmtool

Changes:
- Add `enableEvmV2` field to EvmConfiguration (default false)
- Wire `--Xevm-go-fast` hidden CLI flag in EvmOptions and evmtool
- ConfigurationOverviewBuilder: prints EVM v2 notice when enabled; suppresses
  redundant opcode-optimizations line in that mode
- evmtool: execution-strategy wrapper prints v2 notice before any subcommand,
  covering benchmark (which never calls getEvmConfiguration via Dagger)
- --Xevm-v2 added as CLI alias alongside --Xevm-go-fast

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu
Copy link
Copy Markdown
Contributor Author

siladu commented Mar 27, 2026

Closing in favour on #10105

@siladu siladu closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant