Formatting fix

This commit is contained in:
Sergey Vasilyev
2020-05-06 00:40:53 +03:00
committed by Pratyush Mishra
parent 0b87c84cdd
commit 67196d8371

View File

@@ -163,7 +163,8 @@ impl<P: MerkleTreeConfig> MerkleHashTree<P> {
let mut cur_hash = tree[0].clone();
let root_hash = if cur_height < Self::HEIGHT as usize {
while cur_height < (Self::HEIGHT - 1) as usize {
cur_hash = hash_inner_node::<P::H>(&parameters, &cur_hash, &empty_hash, &mut buffer)?;
cur_hash =
hash_inner_node::<P::H>(&parameters, &cur_hash, &empty_hash, &mut buffer)?;
padding_tree.push((cur_hash.clone(), empty_hash.clone()));
cur_height += 1;
}