fn update(&mut self) -> Result<(), failure::Error> {
        let old = self.circuit_tree_block;
        self.update_circuit_account_tree()?;
        if old != self.circuit_tree_block {
            info!("updated circuit tree to block: {}", self.circuit_tree_block);
        }
        let old = self.state_keeper_init.last_block_number;
        self.state_keeper_init.load_state_diff(&self.storage)?;
        if old != self.state_keeper_init.last_block_number {
            info!(
                "updated state keeper init params to block: {}",
                self.state_keeper_init.last_block_number
            );
        }
        Ok(())
    }
/// Pulls new changes from db and update.
Pulls new changes from db and update.
Pulls new changes from db and update .
fn update(&mut self) -> Result<(), failure::Error> {
        let old = self.circuit_tree_block;
        self.update_circuit_account_tree()?;
        if old != self.circuit_tree_block {
            info!("updated circuit tree to block: {}", self.circuit_tree_block);
        }
        let old = self.state_keeper_init.last_block_number;
        self.state_keeper_init.load_state_diff(&self.storage)?;
        if old != self.state_keeper_init.last_block_number {
            info!(
                "updated state keeper init params to block: {}",
                self.state_keeper_init.last_block_number
            );
        }
        Ok(())
    }
fn update ( & mut self ) -> Result < ( ) , failure :: Error > { let old = self . circuit_tree_block ; self . update_circuit_account_tree ( ) ? ; if old != self . circuit_tree_block { info ! ( " " self circuit_tree_block ) ; } let old = self . state_keeper_init . last_block_number ; self . state_keeper_init . load_state_diff ( & self . storage ) ? ; if old != self . state_keeper_init . last_block_number { info ! ( " " self state_keeper_init last_block_number ) ; } Ok ( ( ) ) }
Pulls new changes from db and update.
Pulls new changes from db and update .
&mut self