Remove unused error

This commit is contained in:
Emilia Hane 2023-02-14 12:43:13 +01:00
parent 810d875b02
commit 148385eb70
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -14,7 +14,6 @@ use parking_lot::RwLock;
use state_processing::state_advance::{partial_state_advance, Error as StateAdvanceError}; use state_processing::state_advance::{partial_state_advance, Error as StateAdvanceError};
use std::collections::HashMap; use std::collections::HashMap;
use std::ops::Range; use std::ops::Range;
use store::signed_beacon_block::BlobReconstructionError;
use types::{ use types::{
beacon_state::{ beacon_state::{
compute_committee_index_in_epoch, compute_committee_range_in_epoch, epoch_committee_count, compute_committee_index_in_epoch, compute_committee_range_in_epoch, epoch_committee_count,
@ -43,7 +42,6 @@ pub enum Error {
// Boxed to avoid an infinite-size recursion issue. // Boxed to avoid an infinite-size recursion issue.
BeaconChain(Box<BeaconChainError>), BeaconChain(Box<BeaconChainError>),
MissingBeaconState(Hash256), MissingBeaconState(Hash256),
MissingBlobs(BlobReconstructionError),
FailedToTransitionState(StateAdvanceError), FailedToTransitionState(StateAdvanceError),
CannotAttestToFutureState { CannotAttestToFutureState {
state_slot: Slot, state_slot: Slot,
@ -75,12 +73,6 @@ impl From<BeaconChainError> for Error {
} }
} }
impl From<BlobReconstructionError> for Error {
fn from(e: BlobReconstructionError) -> Self {
Error::MissingBlobs(e)
}
}
/// Stores the minimal amount of data required to compute the committee length for any committee at any /// Stores the minimal amount of data required to compute the committee length for any committee at any
/// slot in a given `epoch`. /// slot in a given `epoch`.
pub struct CommitteeLengths { pub struct CommitteeLengths {