fn fast_forward_block(&mut self, block: &Block) -> Result<Option<FilteredBlock>> {
        let current_app_hash = block
            .header
            .app_hash
            .err_kind(ErrorKind::TendermintRpcError, || "app_hash not found")?
            .to_string();

        if current_app_hash == self.sync_state.last_app_hash {
            let current_block_height = block.header.height.value();
            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 block if app hashes match
Fast forwards state to given block if app hashes match
Fast forwards state to given block if app hashes match
fn fast_forward_block(&mut self, block: &Block) -> Result<Option<FilteredBlock>> {
        let current_app_hash = block
            .header
            .app_hash
            .err_kind(ErrorKind::TendermintRpcError, || "app_hash not found")?
            .to_string();
        if current_app_hash == self.sync_state.last_app_hash {
            let current_block_height = block.header.height.value();
            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_block ( & mut self , block : & Block ) -> Result < Option < FilteredBlock > > { let current_app_hash = block . header . app_hash . err_kind ( ErrorKind :: TendermintRpcError , | | " " ) ? . to_string ( ) ; if current_app_hash == self . sync_state . last_app_hash { let current_block_height = block . header . height . value ( ) ; 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 block if app hashes match
Fast forwards state to given block if app hashes match
&mut self
block
&Block