pub async fn extend(&mut self, entries: Vec<TreeEntry>) -> anyhow::Result<()> {
        let mut tree = self.inner.take().expect(Self::INCONSISTENT_MSG);
        let tree = tokio::task::spawn_blocking(move || {
            tree.extend_random(entries)?;
            anyhow::Ok(tree)
        })
        .await
        .context("extending tree with recovery entries panicked")??;

        self.inner = Some(tree);
        Ok(())
    }
Extends the tree with a chunk of recovery entries.
core/node/metadata_calculator/src/helpers.rs