Fix `get_min_new_period_epochs` helper
This commit is contained in:
parent
4428a6aedf
commit
26c540fbf9
|
@ -40,9 +40,9 @@ def run_is_candidate_block(spec, eth1_block, period_start, success=True):
|
||||||
|
|
||||||
|
|
||||||
def get_min_new_period_epochs(spec):
|
def get_min_new_period_epochs(spec):
|
||||||
return int(
|
return (
|
||||||
spec.SECONDS_PER_ETH1_BLOCK * spec.ETH1_FOLLOW_DISTANCE * 2 # to seconds
|
(spec.SECONDS_PER_ETH1_BLOCK * spec.ETH1_FOLLOW_DISTANCE * 2) # to seconds
|
||||||
/ spec.SECONDS_PER_SLOT / spec.SLOTS_PER_EPOCH
|
// spec.SECONDS_PER_SLOT // spec.SLOTS_PER_EPOCH
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue