comment out old deposit test, re-introduced soon maybe, cc Justin
This commit is contained in:
parent
f27c44b953
commit
c20372409c
|
@ -113,20 +113,21 @@ def test_invalid_withdrawal_credentials_top_up(spec, state):
|
||||||
# inconsistent withdrawal credentials, in top-ups, are allowed!
|
# inconsistent withdrawal credentials, in top-ups, are allowed!
|
||||||
yield from run_deposit_processing(spec, state, deposit, validator_index, valid=True, effective=True)
|
yield from run_deposit_processing(spec, state, deposit, validator_index, valid=True, effective=True)
|
||||||
|
|
||||||
|
# Deposit data temporarily has no index field.
|
||||||
@with_all_phases
|
# SSZ typing catches that, and raises an exception. Test may be introduced back later
|
||||||
@spec_state_test
|
# @with_all_phases
|
||||||
def test_wrong_index(spec, state):
|
# @spec_state_test
|
||||||
validator_index = len(state.validators)
|
# def test_wrong_index(spec, state):
|
||||||
amount = spec.MAX_EFFECTIVE_BALANCE
|
# validator_index = len(state.validators)
|
||||||
deposit = prepare_state_and_deposit(spec, state, validator_index, amount)
|
# amount = spec.MAX_EFFECTIVE_BALANCE
|
||||||
|
# deposit = prepare_state_and_deposit(spec, state, validator_index, amount)
|
||||||
# mess up eth1_deposit_index
|
#
|
||||||
deposit.index = state.eth1_deposit_index + 1
|
# # mess up eth1_deposit_index
|
||||||
|
# deposit.index = state.eth1_deposit_index + 1
|
||||||
sign_deposit_data(spec, state, deposit.data, privkeys[validator_index])
|
#
|
||||||
|
# sign_deposit_data(spec, state, deposit.data, privkeys[validator_index])
|
||||||
yield from run_deposit_processing(spec, state, deposit, validator_index, valid=False)
|
#
|
||||||
|
# yield from run_deposit_processing(spec, state, deposit, validator_index, valid=False)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases
|
||||||
|
|
Loading…
Reference in New Issue