pub fn build_all_caches(&mut self, spec: &ChainSpec) -> Result<(), Error> {
        self.build_all_committee_caches(spec)?;
        self.update_pubkey_cache()?;
        self.exit_cache.build(&self.validators, spec)?;

        Ok(())
    }
/// Build all the caches, if they need to be built.
Build all the caches, if they need to be built.
Build all the caches if they need to be built .
pub fn build_all_caches(&mut self, spec: &ChainSpec) -> Result<(), Error> {
        self.build_all_committee_caches(spec)?;
        self.update_pubkey_cache()?;
        self.exit_cache.build(&self.validators, spec)?;
        Ok(())
    }
pub fn build_all_caches ( & mut self , spec : & ChainSpec ) -> Result < ( ) , Error > { self . build_all_committee_caches ( spec ) ? ; self . update_pubkey_cache ( ) ? ; self . exit_cache . build ( & self . validators , spec ) ? ; Ok ( ( ) ) }
Build all the caches, if they need to be built.
Build all the caches if they need to be built .
&mut self
spec
&ChainSpec