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

Commit c948dcc

Browse files
committed
Hotfix blocks import; genesis test still broken
1 parent 7c9971a commit c948dcc

File tree

3 files changed

+9
-162
lines changed

3 files changed

+9
-162
lines changed

ethereum/tests/test_difficulty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ethereum import tester, blocks
1+
from ethereum import tester
22
import ethereum.utils as utils
33
import rlp
44
import ethereum.testutils as testutils

ethereum/tests/test_frontier.py

Lines changed: 0 additions & 156 deletions
This file was deleted.

ethereum/tests/test_genesis.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import pytest
33
import json
4-
import ethereum.blocks as blocks
54
import ethereum.testutils as testutils
65
from ethereum.testutils import fixture_to_bytes
76
import ethereum.utils as utils
@@ -11,6 +10,10 @@
1110
logger = get_logger()
1211

1312

13+
def blocks_genesis(*args): # FIXME!
14+
pass
15+
16+
1417
@pytest.fixture(scope="module")
1518
def genesis_fixture():
1619
"""
@@ -29,22 +32,22 @@ def genesis_fixture():
2932

3033
@pytest.mark.xfail # code not in sync with genesis fixtures
3134
def test_genesis_state_root(genesis_fixture):
32-
genesis = blocks.genesis(new_env())
35+
genesis = blocks_genesis(new_env())
3336
assert encode_hex(genesis.state_root) == utils.to_string(genesis_fixture['genesis_state_root'])
3437

3538

3639
def test_genesis_initial_alloc(genesis_fixture):
3740
env = new_env()
38-
genesis = blocks.genesis(env)
41+
genesis = blocks_genesis(env)
3942
for k, v in list(env.config['GENESIS_INITIAL_ALLOC'].items()):
4043
assert genesis.get_balance(k) == v.get("balance", 0) or v.get("wei", 0)
4144

4245

4346
@pytest.mark.xfail # code not in sync with genesis fixtures
4447
def test_genesis_hash(genesis_fixture):
45-
genesis = blocks.genesis(new_env())
48+
genesis = blocks_genesis(new_env())
4649
assert genesis.hex_hash() == utils.to_string(genesis_fixture['genesis_hash'])
4750

4851

4952
if __name__ == '__main__':
50-
print('current genesis:', blocks.genesis(new_env()).hex_hash())
53+
print('current genesis:', blocks_genesis(new_env()).hex_hash())

0 commit comments

Comments
 (0)