mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 06:15:15 -05:00
ensure validator balances are losing when no finality
This commit is contained in:
@@ -108,6 +108,8 @@ def test_empty_epoch_transition_not_finalizing(state):
|
||||
|
||||
assert test_state.slot == block.slot
|
||||
assert test_state.finalized_epoch < get_current_epoch(test_state) - 4
|
||||
for index in range(len(test_state.validator_registry)):
|
||||
assert get_balance(test_state, index) < get_balance(state, index)
|
||||
|
||||
return state, [block], test_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user