ensure validator balances are losing when no finality

This commit is contained in:
Danny Ryan 2019-03-26 13:18:18 -06:00
parent 654351faea
commit a38e3525cd
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ def test_empty_epoch_transition_not_finalizing(state):
assert test_state.slot == block.slot assert test_state.slot == block.slot
assert test_state.finalized_epoch < get_current_epoch(test_state) - 4 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 return state, [block], test_state