fix missing transition

This commit is contained in:
protolambda 2019-12-12 16:16:52 +01:00
parent 8d5d7387f9
commit 020dbb1ecd
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ def test_proposer_after_inactive_index(spec, state):
# found a proposer that has a higher index than a disabled validator # found a proposer that has a higher index than a disabled validator
yield 'pre', state yield 'pre', state
# test if the proposer can be recognized correctly after the inactive validator # test if the proposer can be recognized correctly after the inactive validator
signed_block = sign_block(spec, state, build_empty_block(spec, state), proposer_index=proposer_index) signed_block = state_transition_and_sign_block(spec, state, build_empty_block(spec, state))
yield 'blocks', [signed_block] yield 'blocks', [signed_block]
yield 'post', state yield 'post', state
break break
@ -295,7 +295,7 @@ def test_high_proposer_index(spec, state):
# found a proposer that has a higher index than the active validator count # found a proposer that has a higher index than the active validator count
yield 'pre', state yield 'pre', state
# test if the proposer can be recognized correctly, even while it has a high index. # test if the proposer can be recognized correctly, even while it has a high index.
signed_block = sign_block(spec, state, build_empty_block(spec, state), proposer_index=proposer_index) signed_block = state_transition_and_sign_block(spec, state, build_empty_block(spec, state))
yield 'blocks', [signed_block] yield 'blocks', [signed_block]
yield 'post', state yield 'post', state
break break