mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 04:25:12 -05:00
fix bug with _epochs_until_leak helper
This commit is contained in:
@@ -61,7 +61,11 @@ def _randomize_state(spec, state):
|
||||
## epochs
|
||||
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user