/// Tell the cache that a successful state sync has completed for `height`
Tell the cache that a successful state sync has completed for `height`
Tell the cache that a successful state sync has completed for ` height `
pub fn register_successful_sync(&mut self, height: Height) {
        let new_height = match self.highest_successful_sync {
            Some(old_height) => height.max(old_height),
            None => height,
        };
        self.highest_successful_sync = Some(new_height);
    }
pub fn register_successful_sync ( & mut self , height : Height ) { let new_height = match self . highest_successful_sync { Some ( old_height ) => height . max ( old_height ) , None => height , } ; self . highest_successful_sync = Some ( new_height ) ; }
Tell the cache that a successful state sync has completed for `height`
Tell the cache that a successful state sync has completed for ` height `
&mut self
height
Height