def test_slash_and_exit_same_index(spec, state): validator_index = spec.get_active_validator_indices( state, spec.get_current_epoch(state))[-1] yield from run_slash_and_exit(spec, state, validator_index, validator_index, valid=False)
def test_slash_and_exit_diff_index(spec, state): slash_index = spec.get_active_validator_indices( state, spec.get_current_epoch(state))[-1] exit_index = spec.get_active_validator_indices( state, spec.get_current_epoch(state))[-2] yield from run_slash_and_exit(spec, state, slash_index, exit_index)