Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 492ce21

Browse files
author
Jan Xie
committed
fix tester
1 parent db10f3a commit 492ce21

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ethereum/tools/tester.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ def get_env(env):
119119

120120
class Chain(object):
121121
def __init__(self, alloc=None, env=None):
122-
self.chain = chain.Chain(mk_basic_state(base_alloc if alloc is None else alloc,
123-
None,
124-
get_env(env)))
122+
self.chain = chain.Chain(
123+
genesis=mk_basic_state(base_alloc if alloc is None else alloc,
124+
None,
125+
get_env(env)),
126+
reset_genesis=True
127+
)
125128
self.cs = get_consensus_strategy(self.chain.env.config)
126129
self.block = mk_block_from_prevstate(self.chain, timestamp=self.chain.state.timestamp + 1)
127130
self.head_state = self.chain.state.ephemeral_clone()

0 commit comments

Comments
 (0)