mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 14:23:11 +00:00
Update nssa/src/merkle_tree/mod.rs
Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
parent
45b31d304c
commit
6e7520bfea
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user