mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-26 18:40:40 +00:00
Fixes tests
This commit is contained in:
parent
d6e616d4fe
commit
cb5c95b84e
@ -52,7 +52,7 @@ def run_transfer_processing(state, transfer, valid=True):
|
|||||||
def test_success_non_activated(state):
|
def test_success_non_activated(state):
|
||||||
transfer = get_valid_transfer(state)
|
transfer = get_valid_transfer(state)
|
||||||
# un-activate so validator can transfer
|
# un-activate so validator can transfer
|
||||||
state.validator_registry[transfer.sender].activation_epoch = spec.FAR_FUTURE_EPOCH
|
state.validator_registry[transfer.sender].activation_eligibility_epoch = spec.FAR_FUTURE_EPOCH
|
||||||
|
|
||||||
pre_state, post_state = run_transfer_processing(state, transfer)
|
pre_state, post_state = run_transfer_processing(state, transfer)
|
||||||
|
|
||||||
|
@ -442,7 +442,7 @@ def test_transfer(state):
|
|||||||
spec.BLS_WITHDRAWAL_PREFIX_BYTE + hash(transfer_pubkey)[1:]
|
spec.BLS_WITHDRAWAL_PREFIX_BYTE + hash(transfer_pubkey)[1:]
|
||||||
)
|
)
|
||||||
# un-activate so validator can transfer
|
# un-activate so validator can transfer
|
||||||
pre_state.validator_registry[sender_index].activation_epoch = spec.FAR_FUTURE_EPOCH
|
pre_state.validator_registry[sender_index].activation_eligibility_epoch = spec.FAR_FUTURE_EPOCH
|
||||||
|
|
||||||
post_state = deepcopy(pre_state)
|
post_state = deepcopy(pre_state)
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user