diff --git a/src/ethereum_test_specs/blockchain.py b/src/ethereum_test_specs/blockchain.py index 458b5dd110c..65e6e882cd2 100644 --- a/src/ethereum_test_specs/blockchain.py +++ b/src/ethereum_test_specs/blockchain.py @@ -903,6 +903,10 @@ def execute( for block in self.blocks: blocks += [block.txs] # Pass gas validation params for benchmark tests + # If not benchmark mode, skip gas used validation + if self._operation_mode != OpMode.BENCHMARKING: + self.skip_gas_used_validation = True + return TransactionPost( blocks=blocks, post=self.post, diff --git a/src/ethereum_test_specs/state.py b/src/ethereum_test_specs/state.py index 3e7c27041c6..b14ef89640d 100644 --- a/src/ethereum_test_specs/state.py +++ b/src/ethereum_test_specs/state.py @@ -445,6 +445,9 @@ def execute( """Generate the list of test fixtures.""" if execute_format == TransactionPost: # Pass gas validation params for benchmark tests + # If not benchmark mode, skip gas used validation + if self._operation_mode != OpMode.BENCHMARKING: + self.skip_gas_used_validation = True return TransactionPost( blocks=[[self.tx]], post=self.post,