mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-03 06:13:31 +00:00
Fix lint erorrs
This commit is contained in:
parent
b5bd90dd5f
commit
313439a04b
@ -724,7 +724,11 @@ def test_incorrect_finalized(spec, state):
|
||||
assert store.voting_source[last_fork_block_root].epoch == store.justified_checkpoint.epoch
|
||||
assert store.finalized_checkpoint.epoch != spec.GENESIS_EPOCH
|
||||
finalized_slot = spec.compute_start_slot_at_epoch(store.finalized_checkpoint.epoch)
|
||||
assert store.finalized_checkpoint.root != spec.get_checkpoint_block(store, block_root, store.finalized_checkpoint.epoch)
|
||||
assert store.finalized_checkpoint.root != spec.get_checkpoint_block(
|
||||
store,
|
||||
block_root,
|
||||
store.finalized_checkpoint.epoch
|
||||
)
|
||||
assert spec.get_head(store) != last_fork_block_root
|
||||
assert spec.get_head(store) == head_root
|
||||
|
||||
|
@ -352,7 +352,11 @@ def test_new_finalized_slot_is_not_justified_checkpoint_ancestor(spec, state):
|
||||
# NOTE: Do not call `on_tick` here
|
||||
yield from add_block(spec, store, block, test_steps)
|
||||
|
||||
ancestor_at_finalized_slot = spec.get_checkpoint_block(store, pre_store_justified_checkpoint_root, store.finalized_checkpoint.epoch)
|
||||
ancestor_at_finalized_slot = spec.get_checkpoint_block(
|
||||
store,
|
||||
pre_store_justified_checkpoint_root,
|
||||
store.finalized_checkpoint.epoch
|
||||
)
|
||||
assert ancestor_at_finalized_slot != store.finalized_checkpoint.root
|
||||
|
||||
assert store.finalized_checkpoint == another_state.finalized_checkpoint
|
||||
@ -427,7 +431,11 @@ def test_new_finalized_slot_is_justified_checkpoint_ancestor(spec, state):
|
||||
for block in all_blocks:
|
||||
yield from tick_and_add_block(spec, store, block, test_steps)
|
||||
|
||||
ancestor_at_finalized_slot = spec.get_checkpoint_block(store, pre_store_justified_checkpoint_root, store.finalized_checkpoint.epoch)
|
||||
ancestor_at_finalized_slot = spec.get_checkpoint_block(
|
||||
store,
|
||||
pre_store_justified_checkpoint_root,
|
||||
store.finalized_checkpoint.epoch
|
||||
)
|
||||
assert ancestor_at_finalized_slot == store.finalized_checkpoint.root
|
||||
|
||||
assert store.finalized_checkpoint == another_state.finalized_checkpoint
|
||||
|
Loading…
x
Reference in New Issue
Block a user