sign block headers

This commit is contained in:
protolambda 2019-05-15 20:50:11 +02:00
parent a9069cbf9e
commit b92a9d8857
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -49,15 +49,16 @@ def test_success(state):
@spec_state_test @spec_state_test
def test_invalid_slot(state): def test_invalid_slot(state):
block = build_empty_block_for_next_slot(state) block = build_empty_block_for_next_slot(state, signed=False)
block.slot = state.slot + 2 # invalid slot block.slot = state.slot + 2 # invalid slot
sign_block(state, block)
yield from run_block_header_processing(state, block, valid=False) yield from run_block_header_processing(state, block, valid=False)
@spec_state_test @spec_state_test
def test_invalid_previous_block_root(state): def test_invalid_previous_block_root(state):
block = build_empty_block_for_next_slot(state) block = build_empty_block_for_next_slot(state, signed=False)
block.previous_block_root = b'\12' * 32 # invalid prev root block.previous_block_root = b'\12' * 32 # invalid prev root
sign_block(state, block) sign_block(state, block)