mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
add intial focil test
This commit is contained in:
@@ -845,7 +845,9 @@ impl<E: EthSpec> BeaconState<E> {
|
||||
let epoch = slot.epoch(E::slots_per_epoch());
|
||||
let current_epoch = self.current_epoch();
|
||||
let next_epoch = current_epoch.safe_add(1)?;
|
||||
if epoch != current_epoch || epoch != next_epoch {
|
||||
|
||||
// TODO(focil) review this logic
|
||||
if epoch != current_epoch && epoch != next_epoch {
|
||||
return Err(Error::SlotOutOfBounds);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user