mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-03 11:40:39 +00:00
signed block header
This commit is contained in:
parent
ab251d4797
commit
4d08e9d7d6
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user