pub fn extend(&mut self, entries: Vec<TreeEntry>) -> anyhow::Result<BlockOutput> {
        let next_version = self.db.manifest().unwrap_or_default().version_count;
        let storage = Storage::new(&self.db, &self.hasher, next_version, true);
        let (output, patch) = storage.extend(entries);
        self.db.apply_patch(patch)?;
        Ok(output)
    }
Extends this tree by creating its new version.

# Return value

Returns information about the update such as the final tree hash.

# Errors

Proxies database I/O errors.
core/lib/merkle_tree/src/lib.rs