/// Returns the hash of the leaf index provided, as well as its deletion status. The node has been marked for
/// deletion if the boolean value is true.
Returns the hash of the leaf index provided, as well as its deletion status. The node has been marked for
deletion if the boolean value is true.
Returns the hash of the leaf index provided as well as its deletion status . The node has been marked for deletion if the boolean value is true .
pub fn fetch_mmr_node(&self, leaf_index: u32) -> Result<(Option<Hash>, bool), MerkleMountainRangeError> {
        let (base_hash, base_deleted) = self.base_mmr.get_leaf_status(leaf_index)?;
        let (curr_hash, curr_deleted) = self.curr_mmr.get_leaf_status(leaf_index)?;
        if let Some(base_hash) = base_hash {
            return Ok((Some(base_hash), base_deleted | curr_deleted));
        }
        Ok((curr_hash, base_deleted | curr_deleted))
    }
pub fn fetch_mmr_node ( & self , leaf_index : u32 ) -> Result < ( Option < Hash > , bool ) , MerkleMountainRangeError > { let ( base_hash , base_deleted ) = self . base_mmr . get_leaf_status ( leaf_index ) ? ; let ( curr_hash , curr_deleted ) = self . curr_mmr . get_leaf_status ( leaf_index ) ? ; if let Some ( base_hash ) = base_hash { return Ok ( ( Some ( base_hash ) , base_deleted | curr_deleted ) ) ; } Ok ( ( curr_hash , base_deleted | curr_deleted ) ) }
Returns the hash of the leaf index provided, as well as its deletion status.
Returns the hash of the leaf index provided as well as its deletion status .
&self
leaf_index
u32