mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +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
4e122abbce
commit
45b31d304c
@ -57,7 +57,7 @@ impl MerkleTree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_capacity(capacity: usize) -> Self {
|
pub fn with_capacity(capacity: usize) -> Self {
|
||||||
//adjust capacity to ensure power of two
|
// Adjust capacity to ensure power of two
|
||||||
let capacity = capacity.next_power_of_two();
|
let capacity = capacity.next_power_of_two();
|
||||||
let total_depth = capacity.trailing_zeros() as usize;
|
let total_depth = capacity.trailing_zeros() as usize;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user