// Reconstruct the base MMR using the shared checkpoints. The base MMR contains the state from the the first
// checkpoint to the checkpoint tip minus the minimum history length.
Reconstruct the base MMR using the shared checkpoints. The base MMR contains the state from the the first
checkpoint to the checkpoint tip minus the minimum history length.
Reconstruct the base MMR using the shared checkpoints . The base MMR contains the state from the the first checkpoint to the checkpoint tip minus the minimum history length .
fn create_base_mmr(&mut self) -> Result<(), MerkleMountainRangeError> {
        self.base_mmr.clear()?;
        self.base_cp_index = self.calculate_base_cp_index()?;
        for cp_index in 0..=self.base_cp_index {
            if let Some(cp) = self
                .checkpoints
                .get(cp_index)
                .map_err(|e| MerkleMountainRangeError::BackendError(e.to_string()))?
            {
                cp.apply(&mut self.base_mmr)?;
            }
        }
        Ok(())
    }
fn create_base_mmr ( & mut self ) -> Result < ( ) , MerkleMountainRangeError > { self . base_mmr . clear ( ) ? ; self . base_cp_index = self . calculate_base_cp_index ( ) ? ; for cp_index in 0 ..= self . base_cp_index { if let Some ( cp ) = self . checkpoints . get ( cp_index ) . map_err ( | e | MerkleMountainRangeError :: BackendError ( e . to_string ( ) ) ) ? { cp . apply ( & mut self . base_mmr ) ? ; } } Ok ( ( ) ) }
Reconstruct the base MMR using the shared checkpoints.
Reconstruct the base MMR using the shared checkpoints .
&mut self