mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 04:04:19 +00:00
fix bug with _epochs_until_leak
helper
This commit is contained in:
parent
820affd2aa
commit
270814e20f
@ -61,7 +61,11 @@ def _randomize_state(spec, state):
|
|||||||
## epochs
|
## epochs
|
||||||
|
|
||||||
def _epochs_until_leak(spec):
|
def _epochs_until_leak(spec):
|
||||||
return spec.MIN_EPOCHS_TO_INACTIVITY_PENALTY
|
"""
|
||||||
|
State is "leaking" if the current epoch is at least
|
||||||
|
this value after the last finalized epoch.
|
||||||
|
"""
|
||||||
|
return spec.MIN_EPOCHS_TO_INACTIVITY_PENALTY + 1
|
||||||
|
|
||||||
|
|
||||||
def _epochs_for_shard_committee_period(spec):
|
def _epochs_for_shard_committee_period(spec):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user