Skip to content

Commit

Permalink
Default py-evm backend VM to Istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Oct 2, 2019
1 parent 3ffa12b commit e4c1c34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased
----------

- Breaking changes

- Default to IstanbulVM
https://github.com/ethereum/eth-tester/pull/XXX

- Misc

- Upgrade to py-evm v0.3.0-b7
Expand Down
8 changes: 4 additions & 4 deletions eth_tester/backends/pyevm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ def get_default_genesis_params(overrides=None):
def setup_tester_chain(genesis_params=None, genesis_state=None, num_accounts=None):
from eth.chains.base import MiningChain
from eth.db import get_db_backend
from eth.vm.forks.constantinople import ConstantinopleVM
from eth.vm.forks.istanbul import IstanbulVM

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

@classmethod
def validate_seal(self, header):
pass

class MainnetTesterNoProofChain(MiningChain):
vm_configuration = ((0, ConstantinopleNoProofVM), )
vm_configuration = ((0, IstanbulNoProofVM), )

@classmethod
def validate_seal(cls, block):
Expand Down

0 comments on commit e4c1c34

Please sign in to comment.