From 4168943ecf0f3465fdea74f3d9bdc2d21f567153 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 2 Sep 2021 15:38:52 -0600 Subject: [PATCH] Update tests/core/pyspec/eth2spec/test/helpers/random.py --- tests/core/pyspec/eth2spec/test/helpers/random.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/helpers/random.py b/tests/core/pyspec/eth2spec/test/helpers/random.py index 0bb2a6672..b24d3c8c7 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/random.py +++ b/tests/core/pyspec/eth2spec/test/helpers/random.py @@ -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))