From a38e3525cd27559cca9599c7c9cf7199b81b558b Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Tue, 26 Mar 2019 13:18:18 -0600 Subject: [PATCH] ensure validator balances are losing when no finality --- tests/phase0/test_sanity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phase0/test_sanity.py b/tests/phase0/test_sanity.py index b287bde51..3b4497ca5 100644 --- a/tests/phase0/test_sanity.py +++ b/tests/phase0/test_sanity.py @@ -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