Update tests/core/pyspec/eth2spec/test/helpers/random.py

This commit is contained in:
Alex Stokes
2021-09-02 15:38:52 -06:00
committed by GitHub
parent 30596fb8a1
commit 4168943ecf

View File

@@ -141,7 +141,8 @@ def patch_state_to_non_leaking(spec, state):
performed by other functionality in this module so that if the ``state`` was leaking,
then the ``state`` is not leaking after.
"""
state.justification_bits = (True, True, True, True)
state.justification_bits[0] = True
state.justification_bits[1] = True
previous_epoch = spec.get_previous_epoch(state)
previous_root = spec.get_block_root(state, previous_epoch)
previous_previous_epoch = max(spec.GENESIS_EPOCH, spec.Epoch(previous_epoch - 1))