/// Apply the current change set to a pruned copy of the merkle mountain range and calculate the resulting Merklish
/// root of the specified merkle mountain range. Deletions of hashes from the MMR can only be applied for UTXOs.
Apply the current change set to a pruned copy of the merkle mountain range and calculate the resulting Merklish
root of the specified merkle mountain range. Deletions of hashes from the MMR can only be applied for UTXOs.
Apply the current change set to a pruned copy of the merkle mountain range and calculate the resulting Merklish root of the specified merkle mountain range . Deletions of hashes from the MMR can only be applied for UTXOs .
pub fn calculate_mmr_root(
        &self,
        tree: MmrTree,
        additions: Vec<HashOutput>,
        deletions: Vec<HashOutput>,
    ) -> Result<HashOutput, ChainStorageError>
    {
        let db = self.db_read_access()?;
        db.calculate_mmr_root(tree, additions, deletions)
    }
pub fn calculate_mmr_root ( & self , tree : MmrTree , additions : Vec < HashOutput > , deletions : Vec < HashOutput > , ) -> Result < HashOutput , ChainStorageError > { let db = self . db_read_access ( ) ? ; db . calculate_mmr_root ( tree , additions , deletions ) }
Apply the current change set to a pruned copy of the merkle mountain range and calculate the resulting Merklish
root of the specified merkle mountain range.
Apply the current change set to a pruned copy of the merkle mountain range and calculate the resulting Merklish root of the specified merkle mountain range .
&self
tree
MmrTree
additions
Vec<HashOutput>
deletions
Vec<HashOutput>