Add new error type missed in previous commit

This commit is contained in:
Paul Hauner
2019-11-27 17:36:19 +11:00
parent e0f417ec86
commit 34e6e6f943

View File

@@ -4,6 +4,7 @@ use ssz_types::Error as SszTypesError;
use state_processing::per_block_processing::errors::AttestationValidationError; use state_processing::per_block_processing::errors::AttestationValidationError;
use state_processing::BlockProcessingError; use state_processing::BlockProcessingError;
use state_processing::SlotProcessingError; use state_processing::SlotProcessingError;
use std::time::Duration;
use types::*; use types::*;
macro_rules! easy_from_to { macro_rules! easy_from_to {
@@ -40,8 +41,9 @@ pub enum BeaconChainError {
}, },
AttestationValidationError(AttestationValidationError), AttestationValidationError(AttestationValidationError),
StateSkipTooLarge { StateSkipTooLarge {
head_slot: Slot, start_slot: Slot,
requested_slot: Slot, requested_slot: Slot,
max_task_runtime: Duration,
}, },
/// Returned when an internal check fails, indicating corrupt data. /// Returned when an internal check fails, indicating corrupt data.
InvariantViolated(String), InvariantViolated(String),