pub fn load_fork_choice(store: BeaconStore<T>) -> Result<Option<BeaconForkChoice<T>>, Error> {
        let persisted_fork_choice =
            match store.get_item::<PersistedForkChoice>(&FORK_CHOICE_DB_KEY)? {
                Some(fc) => fc,
                None => return Ok(None),
            };

        let fc_store =
            BeaconForkChoiceStore::from_persisted(persisted_fork_choice.fork_choice_store, store)?;

        Ok(Some(ForkChoice::from_persisted(
            persisted_fork_choice.fork_choice,
            fc_store,
        )?))
    }
/// Load fork choice from disk, returning `None` if it isn't found.
Load fork choice from disk, returning `None` if it isn't found.
Load fork choice from disk returning ` None ` if it isn ' t found .
pub fn load_fork_choice(store: BeaconStore<T>) -> Result<Option<BeaconForkChoice<T>>, Error> {
        let persisted_fork_choice =
            match store.get_item::<PersistedForkChoice>(&FORK_CHOICE_DB_KEY)? {
                Some(fc) => fc,
                None => return Ok(None),
            };
        let fc_store =
            BeaconForkChoiceStore::from_persisted(persisted_fork_choice.fork_choice_store, store)?;
        Ok(Some(ForkChoice::from_persisted(
            persisted_fork_choice.fork_choice,
            fc_store,
        )?))
    }
pub fn load_fork_choice ( store : BeaconStore < T > ) -> Result < Option < BeaconForkChoice < T > > , Error > { let persisted_fork_choice = match store . get_item :: < PersistedForkChoice > ( & FORK_CHOICE_DB_KEY ) ? { Some ( fc ) => fc , None => return Ok ( None ) , } ; let fc_store = BeaconForkChoiceStore :: from_persisted ( persisted_fork_choice . fork_choice_store , store ) ? ; Ok ( Some ( ForkChoice :: from_persisted ( persisted_fork_choice . fork_choice , fc_store , ) ? ) ) }
Load fork choice from disk, returning `None` if it isn't found.
Load fork choice from disk returning ` None ` if it isn ' t found .
store
BeaconStore<T>