mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-27 06:47:13 +00:00
spec: fix off-by-one, allows state_sim to continue
This commit is contained in:
parent
2f96c4bade
commit
337aa83f1a
@ -451,7 +451,7 @@ func inclusion_distance(state: BeaconState, v: ValidatorIndex): uint64 =
|
||||
func processEpoch(state: var BeaconState) =
|
||||
## https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#per-epoch-processing
|
||||
|
||||
if state.slot mod EPOCH_LENGTH != 0:
|
||||
if (state.slot + 1) mod EPOCH_LENGTH != 0:
|
||||
return
|
||||
|
||||
# Precomputation
|
||||
|
Loading…
x
Reference in New Issue
Block a user