mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 01:54:59 -05:00
fix tests and off by one error
This commit is contained in:
@@ -78,10 +78,6 @@ def test_success_exit_queue(state):
|
||||
)
|
||||
|
||||
pre_state, post_state = run_voluntary_exit_processing(post_state, voluntary_exit)
|
||||
assert post_state.exit_queue_churn > pre_state.exit_queue_churn
|
||||
assert post_state.exit_queue_epoch >= pre_state.exit_queue_epoch
|
||||
|
||||
assert post_state.exit_queue_epoch == pre_state.exit_queue_epoch
|
||||
|
||||
# exit an additional validator
|
||||
validator_index = get_active_validator_indices(state, current_epoch)[-1]
|
||||
@@ -99,9 +95,6 @@ def test_success_exit_queue(state):
|
||||
post_state.validator_registry[validator_index].exit_epoch ==
|
||||
post_state.validator_registry[initial_indices[0]].exit_epoch + 1
|
||||
)
|
||||
assert post_state.exit_queue_churn == 0
|
||||
assert post_state.exit_queue_epoch == pre_state.exit_queue_epoch + 1
|
||||
|
||||
|
||||
return pre_state, voluntary_exit, post_state
|
||||
|
||||
|
||||
@@ -346,8 +346,6 @@ def test_no_exit_churn_too_long_since_change(state):
|
||||
state_transition(post_state, block)
|
||||
|
||||
assert post_state.validator_registry[validator_index].exit_epoch == spec.FAR_FUTURE_EPOCH
|
||||
assert post_state.exit_queue_churn == pre_state.exit_queue_churn
|
||||
assert post_state.exit_queue_epoch == pre_state.exit_queue_epoch
|
||||
|
||||
return pre_state, [block], post_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user