signed block header

This commit is contained in:
protolambda 2019-05-21 21:22:32 +02:00
parent ab251d4797
commit 4d08e9d7d6
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
2 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,9 @@ def test_success_block_header(state):
@spec_state_test
def test_invalid_slot_block_header(state):
block = build_empty_block_for_next_slot(state, signed=True)
block = build_empty_block_for_next_slot(state, signed=False)
block.slot = state.slot + 2 # invalid slot
sign_block(state, block)
yield from run_block_header_processing(state, block, valid=False)

View File

@ -57,7 +57,7 @@ def bls_switch(fn):
"""
def entry(*args, **kw):
old_state = bls.bls_active
bls.bls_active = kw.pop('bls_active', False)
bls.bls_active = kw.pop('bls_active', True)
fn(*args, **kw)
bls.bls_active = old_state
return entry