pub fn merkle_tree(&self, tree_size: usize, tree_leafs: usize) -> Result<Tree> {
        let mut config = StoreConfig::new(
            &self.cache_dir,
            CacheKey::CommRLastTree.to_string(),
            DEFAULT_CACHED_ABOVE_BASE_LAYER,
        );
        config.size = Some(tree_size);
        let tree_r_last_store: DiskStore<<DefaultTreeHasher as Hasher>::Domain> =
            DiskStore::new_from_disk(tree_size, &config)?;
        let tree_r_last: Tree = MerkleTree::from_data_store(tree_r_last_store, tree_leafs)?;

        Ok(tree_r_last)
    }
/// Generate the merkle tree of this particular replica.
Generate the merkle tree of this particular replica.
Generate the merkle tree of this particular replica .
pub fn merkle_tree(&self, tree_size: usize, tree_leafs: usize) -> Result<Tree> {
        let mut config = StoreConfig::new(
            &self.cache_dir,
            CacheKey::CommRLastTree.to_string(),
            DEFAULT_CACHED_ABOVE_BASE_LAYER,
        );
        config.size = Some(tree_size);
        let tree_r_last_store: DiskStore<<DefaultTreeHasher as Hasher>::Domain> =
            DiskStore::new_from_disk(tree_size, &config)?;
        let tree_r_last: Tree = MerkleTree::from_data_store(tree_r_last_store, tree_leafs)?;
        Ok(tree_r_last)
    }
pub fn merkle_tree ( & self , tree_size : usize , tree_leafs : usize ) -> Result < Tree > { let mut config = StoreConfig :: new ( & self . cache_dir , CacheKey :: CommRLastTree . to_string ( ) , DEFAULT_CACHED_ABOVE_BASE_LAYER , ) ; config . size = Some ( tree_size ) ; let tree_r_last_store : DiskStore < < DefaultTreeHasher as Hasher > :: Domain > = DiskStore :: new_from_disk ( tree_size , & config ) ? ; let tree_r_last : Tree = MerkleTree :: from_data_store ( tree_r_last_store , tree_leafs ) ? ; Ok ( tree_r_last ) }
Generate the merkle tree of this particular replica.
Generate the merkle tree of this particular replica .
&self
tree_size
usize
tree_leafs
usize
&self
tree_size
usize
tree_leafs
usize