From 148385eb7099a1ab03274213e462fc99f28c1de6 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 14 Feb 2023 12:43:13 +0100 Subject: [PATCH] Remove unused error --- beacon_node/beacon_chain/src/attester_cache.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/beacon_node/beacon_chain/src/attester_cache.rs b/beacon_node/beacon_chain/src/attester_cache.rs index 8421b0a5c..24963a125 100644 --- a/beacon_node/beacon_chain/src/attester_cache.rs +++ b/beacon_node/beacon_chain/src/attester_cache.rs @@ -14,7 +14,6 @@ use parking_lot::RwLock; use state_processing::state_advance::{partial_state_advance, Error as StateAdvanceError}; use std::collections::HashMap; use std::ops::Range; -use store::signed_beacon_block::BlobReconstructionError; use types::{ beacon_state::{ 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. BeaconChain(Box), MissingBeaconState(Hash256), - MissingBlobs(BlobReconstructionError), FailedToTransitionState(StateAdvanceError), CannotAttestToFutureState { state_slot: Slot, @@ -75,12 +73,6 @@ impl From for Error { } } -impl From 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 /// slot in a given `epoch`. pub struct CommitteeLengths {