fn restore_trusted_state(&mut self) -> Result<(), error::Error> {
        if let Some(last_height) = self.trusted_store.last_height()? {
            debug!(
                chain.id = %self.chain.id(),
                "restoring trusted state from store",
            );

            let last_trusted_state = self
                .trusted_store
                .get(store::StoreHeight::Given(last_height))?;

            debug!(
                chain.id = %self.chain.id(),
                last_height = last_height,
                "found trusted state in store",
            );

            self.last_trusted_state = Some(last_trusted_state);
        } else {
            debug!(
                chain.id = %self.chain.id(),
                "no last height recorded in trusted store",
            );
        }

        Ok(())
    }
/// Restore the last trusted state from the state, by asking for
/// its last stored height, without any verification.
Restore the last trusted state from the state, by asking for
its last stored height, without any verification.
Restore the last trusted state from the state by asking for its last stored height without any verification .
fn restore_trusted_state(&mut self) -> Result<(), error::Error> {
        if let Some(last_height) = self.trusted_store.last_height()? {
            debug!(
                chain.id = %self.chain.id(),
                "restoring trusted state from store",
            );
            let last_trusted_state = self
                .trusted_store
                .get(store::StoreHeight::Given(last_height))?;
            debug!(
                chain.id = %self.chain.id(),
                last_height = last_height,
                "found trusted state in store",
            );
            self.last_trusted_state = Some(last_trusted_state);
        } else {
            debug!(
                chain.id = %self.chain.id(),
                "no last height recorded in trusted store",
            );
        }
        Ok(())
    }
fn restore_trusted_state ( & mut self ) -> Result < ( ) , error :: Error > { if let Some ( last_height ) = self . trusted_store . last_height ( ) ? { debug ! ( chain id self chain id ( ) " " ) ; let last_trusted_state = self . trusted_store . get ( store :: StoreHeight :: Given ( last_height ) ) ? ; debug ! ( chain id self chain id ( ) last_height last_height " " ) ; self . last_trusted_state = Some ( last_trusted_state ) ; } else { debug ! ( chain id self chain id ( ) " " ) ; } Ok ( ( ) ) }
Restore the last trusted state from the state, by asking for
its last stored height, without any verification.
Restore the last trusted state from the state by asking for its last stored height without any verification .
&mut self
&mut self