mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-07 16:24:05 +00:00
reference vars from config
This commit is contained in:
parent
d74932bec9
commit
f14900fc45
@ -32,7 +32,7 @@ def set_state_epoch(spec, state, epoch):
|
||||
|
||||
|
||||
def set_state_epoch_selection_gap(spec, state):
|
||||
set_state_epoch(spec, state, spec.WHISK_EPOCHS_PER_SHUFFLING_PHASE - 1)
|
||||
set_state_epoch(spec, state, spec.config.WHISK_EPOCHS_PER_SHUFFLING_PHASE - 1)
|
||||
|
||||
|
||||
def empty_block_body(spec):
|
||||
@ -73,7 +73,11 @@ def test_no_shuffle_minus_selection_gap(spec, state):
|
||||
@spec_state_test
|
||||
def test_no_shuffle_minus_one_and_selection_gap(spec, state):
|
||||
body = empty_block_body(spec)
|
||||
set_state_epoch(spec, state, spec.WHISK_EPOCHS_PER_SHUFFLING_PHASE - spec.WHISK_PROPOSER_SELECTION_GAP - 1)
|
||||
set_state_epoch(
|
||||
spec,
|
||||
state,
|
||||
spec.config.WHISK_EPOCHS_PER_SHUFFLING_PHASE - spec.config.WHISK_PROPOSER_SELECTION_GAP - 1
|
||||
)
|
||||
yield from run_process_shuffled_trackers(spec, state, body)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user