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

Commit 737c613

Browse files
author
Jan Xie
committed
fix difficulty test
1 parent 11c0088 commit 737c613

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ethereum/tests/test_difficulty.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ def test_difficulty(filename, testname, testdata):
2929

3030

3131
env = config.Env()
32-
if 'Homestead' in filename:
32+
if 'Homestead' in filename or 'Ropsten' in filename:
3333
env.config['HOMESTEAD_FORK_BLKNUM'] = 0
34-
elif 'difficultyMorden' in filename:
34+
elif 'Morden' in filename:
3535
env.config['HOMESTEAD_FORK_BLKNUM'] = 494000
36+
elif 'Frontier' in filename:
37+
env.config['HOMESTEAD_FORK_BLKNUM'] = 2**256
38+
3639
# env.config['EXPDIFF_FREE_PERIODS'] = 2**98
3740

3841
parent = Block(BlockHeader(timestamp=parent_timestamp,

0 commit comments

Comments
 (0)