Skip to content

Commit 3f4a38f

Browse files
committed
Default py-evm backend VM to Istanbul
1 parent 3ffa12b commit 3f4a38f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Unreleased
22
----------
33

4+
- Breaking changes
5+
6+
- Default to IstanbulVM
7+
https://github.com/ethereum/eth-tester/pull/169
8+
49
- Misc
510

611
- Upgrade to py-evm v0.3.0-b7

eth_tester/backends/pyevm/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ def get_default_genesis_params(overrides=None):
147147
def setup_tester_chain(genesis_params=None, genesis_state=None, num_accounts=None):
148148
from eth.chains.base import MiningChain
149149
from eth.db import get_db_backend
150-
from eth.vm.forks.constantinople import ConstantinopleVM
150+
from eth.vm.forks.istanbul import IstanbulVM
151151

152-
class ConstantinopleNoProofVM(ConstantinopleVM):
153-
"""Constantinople VM rules, without validating any miner proof of work"""
152+
class IstanbulNoProofVM(IstanbulVM):
153+
"""Istanbul VM rules, without validating any miner proof of work"""
154154

155155
@classmethod
156156
def validate_seal(self, header):
157157
pass
158158

159159
class MainnetTesterNoProofChain(MiningChain):
160-
vm_configuration = ((0, ConstantinopleNoProofVM), )
160+
vm_configuration = ((0, IstanbulNoProofVM), )
161161

162162
@classmethod
163163
def validate_seal(cls, block):

0 commit comments

Comments
 (0)