From 020dbb1ecd3ac29f7e8e0a0beae304f5769c4304 Mon Sep 17 00:00:00 2001 From: protolambda Date: Thu, 12 Dec 2019 16:16:52 +0100 Subject: [PATCH] fix missing transition --- test_libs/pyspec/eth2spec/test/sanity/test_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py b/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py index 3c42446cb..2c08a88fe 100644 --- a/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py +++ b/test_libs/pyspec/eth2spec/test/sanity/test_blocks.py @@ -269,7 +269,7 @@ def test_proposer_after_inactive_index(spec, state): # found a proposer that has a higher index than a disabled validator yield 'pre', state # 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 'post', state 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 yield 'pre', state # 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 'post', state break