Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Oct 9, 2018
1 parent 3118399 commit 31a0e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion eth/beacon/state_machines/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from abc import (
ABC,
)
import functools
import logging
from typing import (
Iterable,
Expand Down
3 changes: 3 additions & 0 deletions tests/beacon/state_machines/test_state_machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ def test_state_machine(base_db,
block_1 = genesis_block.copy(
parent_hash=genesis_block.hash,
slot_number=1,
active_state_root=b'\x11' * 32,
)
chaindb.persist_block(block_1)

block_2 = block_1.copy(
parent_hash=block_1.hash,
slot_number=2,
active_state_root=b'\x22' * 32,
)
# canonical head is block_2
chaindb.persist_block(block_2)
Expand All @@ -33,6 +35,7 @@ def test_state_machine(base_db,
block_3 = block_2.copy(
parent_hash=block_2.hash,
slot_number=3,
active_state_root=b'\x33' * 32,
)

sm = SerenityBeaconStateMachine(chaindb, block_3)
Expand Down

0 comments on commit 31a0e2b

Please sign in to comment.