From 226f1d4dfc5992422bf143f2e3255e35c9b0e507 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 6 Nov 2020 07:05:52 -0600 Subject: [PATCH] fix multi-operation test runner helper --- tests/core/pyspec/eth2spec/test/helpers/multi_operations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/helpers/multi_operations.py b/tests/core/pyspec/eth2spec/test/helpers/multi_operations.py index e690467bda..89ac95a3e7 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/multi_operations.py +++ b/tests/core/pyspec/eth2spec/test/helpers/multi_operations.py @@ -148,8 +148,9 @@ def run_test_full_random_operations(spec, state, rng=Random(2080)): slashed_indices = slashed_indices.union(attester_slashing.attestation_2.attesting_indices) block.body.voluntary_exits = get_random_voluntary_exits(spec, state, slashed_indices, rng) + yield 'pre', state + signed_block = state_transition_and_sign_block(spec, state, block) - yield 'pre', state yield 'blocks', [signed_block] yield 'post', state