Update nssa/src/merkle_tree/mod.rs

Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
jonesmarvin8 2025-09-05 16:27:03 -04:00 committed by GitHub
parent 45b31d304c
commit 6e7520bfea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,8 +76,8 @@ impl MerkleTree {
}
}
/// reallocate storage of Merkle tree for double capacity.
/// current tree is embedded into the new tree as a subtree
/// Reallocates storage of Merkle tree for double capacity.
/// The current tree is embedded into the new tree as a subtree
fn reallocate_to_double_capacity(&mut self) {
let old_capacity = self.capacity;
let new_capacity = old_capacity << 1;