Fail if skipping too many slots

This commit is contained in:
Paul Hauner
2019-11-23 17:56:45 +11:00
parent f76f97a3fd
commit ef7b641f9e
2 changed files with 24 additions and 2 deletions

View File

@@ -39,6 +39,10 @@ pub enum BeaconChainError {
beacon_block_root: Hash256,
},
AttestationValidationError(AttestationValidationError),
StateSkipTooLarge {
head_slot: Slot,
requested_slot: Slot,
},
/// Returned when an internal check fails, indicating corrupt data.
InvariantViolated(String),
SszTypesError(SszTypesError),