fn fast_forward_status(&self, status: &Status) -> Result<Option<FilteredBlock>> {
        let current_app_hash = status
            .sync_info
            .latest_app_hash
            .ok_or_else(|| Error::new(ErrorKind::TendermintRpcError, "latest_app_hash not found"))?
            .to_string();

        if current_app_hash == self.sync_state.last_app_hash {
            let current_block_height = status.sync_info.latest_block_height.value();

            let block = self.env.client.block(current_block_height)?;
            let block_result = self.env.client.block_results(current_block_height)?;

            Ok(Some(FilteredBlock::from_block(
                &self.wallet,
                &block,
                &block_result,
            )?))
        } else {
            Ok(None)
        }
    }
/// Fast forwards state to given status if app hashes match
Fast forwards state to given status if app hashes match
Fast forwards state to given status if app hashes match
fn fast_forward_status(&self, status: &Status) -> Result<Option<FilteredBlock>> {
        let current_app_hash = status
            .sync_info
            .latest_app_hash
            .ok_or_else(|| Error::new(ErrorKind::TendermintRpcError, "latest_app_hash not found"))?
            .to_string();
        if current_app_hash == self.sync_state.last_app_hash {
            let current_block_height = status.sync_info.latest_block_height.value();
            let block = self.env.client.block(current_block_height)?;
            let block_result = self.env.client.block_results(current_block_height)?;
            Ok(Some(FilteredBlock::from_block(
                &self.wallet,
                &block,
                &block_result,
            )?))
        } else {
            Ok(None)
        }
    }
fn fast_forward_status ( & self , status : & Status ) -> Result < Option < FilteredBlock > > { let current_app_hash = status . sync_info . latest_app_hash . ok_or_else ( | | Error :: new ( ErrorKind :: TendermintRpcError , " " ) ) ? . to_string ( ) ; if current_app_hash == self . sync_state . last_app_hash { let current_block_height = status . sync_info . latest_block_height . value ( ) ; let block = self . env . client . block ( current_block_height ) ? ; let block_result = self . env . client . block_results ( current_block_height ) ? ; Ok ( Some ( FilteredBlock :: from_block ( & self . wallet , & block , & block_result , ) ? ) ) } else { Ok ( None ) } }
Fast forwards state to given status if app hashes match
Fast forwards state to given status if app hashes match
&self
status
&Status