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

Commit 0ae6482

Browse files
author
Jan Xie
authored
Merge pull request #741 from AndreMiras/patch-2
tester.Chain.mine() fix
2 parents cf7b1fc + bfbdf7b commit 0ae6482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/tools/tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def mine(self, number_of_blocks=1, coinbase=a0):
162162
assert self.chain.add_block(self.block)
163163
assert self.head_state.trie.root_hash == self.chain.state.trie.root_hash
164164
for i in range(1, number_of_blocks):
165-
b = make_head_candidate(self.chain, timestamp=self.chain.state.timestamp + 14)
165+
b, _ = make_head_candidate(self.chain, timestamp=self.chain.state.timestamp + 14)
166166
b = Miner(b).mine(rounds=100, start_nonce=0)
167167
assert self.chain.add_block(b)
168168
self.block = mk_block_from_prevstate(self.chain, timestamp=self.chain.state.timestamp + 14)

0 commit comments

Comments
 (0)