Skip to content

Commit 64e4d25

Browse files
authored
Merge pull request #134 from carver/upgrade-pyevm
Upgrade py-evm to alpha 33
2 parents a9ae913 + fca1214 commit 64e4d25

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

eth_tester/backends/pyevm/main.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,13 @@ def take_snapshot(self):
347347

348348
def revert_to_snapshot(self, snapshot):
349349
block = self.chain.get_block_by_hash(snapshot)
350+
chaindb = self.chain.chaindb
350351
if block.number > 0:
351-
self.chain.chaindb._set_as_canonical_chain_head(block.header)
352+
chaindb._set_as_canonical_chain_head(chaindb.db, block.header.hash)
352353
self.chain.import_block(block)
353354
else:
354-
self.chain.chaindb._set_as_canonical_chain_head(block.header)
355-
self.chain = self.chain.from_genesis_header(self.chain.chaindb.db, block.header)
355+
chaindb._set_as_canonical_chain_head(chaindb.db, block.header.hash)
356+
self.chain = self.chain.from_genesis_header(chaindb.db, block.header)
356357

357358
#
358359
# Meta

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'py-evm': [
2424
# Pin py-evm to exact version, until it leaves alpha.
2525
# EVM is very high velocity and might change API at each alpha.
26-
"py-evm==0.2.0a32",
26+
"py-evm==0.2.0a33",
2727
"eth-hash[pysha3]>=0.1.4,<1.0.0;implementation_name=='cpython'",
2828
"eth-hash[pycryptodome]>=0.1.4,<1.0.0;implementation_name=='pypy'",
2929
],
@@ -52,7 +52,7 @@
5252
install_requires=[
5353
"toolz>0.8.2,<1;implementation_name=='pypy'",
5454
"cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'",
55-
"eth-utils>=1.0.1,<2.0.0",
55+
"eth-utils>=1.1.1,<2.0.0",
5656
"rlp>=0.6.0,<2.0.0",
5757
"semantic_version>=2.6.0,<3.0.0",
5858
"eth-keys>=0.2.0-beta.3,<0.3.0",

0 commit comments

Comments
 (0)