Skip to content

Commit

Permalink
Merge pull request #169 from carver/default-to-istanbul
Browse files Browse the repository at this point in the history
Default py-evm backend VM to Istanbul
  • Loading branch information
carver authored Oct 2, 2019
2 parents 3ffa12b + 3f4a38f commit b3bf495
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/169

- 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 b3bf495

Please sign in to comment.