Browse Source

Formatting fix

master
Sergey Vasilyev 4 years ago
committed by Pratyush Mishra
parent
commit
67196d8371
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      crypto-primitives/src/merkle_tree/mod.rs

+ 2
- 1
crypto-primitives/src/merkle_tree/mod.rs

@ -163,7 +163,8 @@ impl MerkleHashTree

{

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;
}

Loading…
Cancel
Save