Merge pull request #2124 from ethereum/fix-1.0-tests

fix multi-operation test runner helper
This commit is contained in:
Danny Ryan 2020-11-06 10:30:02 -06:00 committed by GitHub
commit 450c8c26f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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