Use SHA256D64 in Merkle root computation

This commit is contained in:
Pieter Wuille
2017-09-27 18:50:31 -07:00
parent d0c9632883
commit 1f0e7ca09c
3 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ static void MerkleRoot(benchmark::State& state)
}
while (state.KeepRunning()) {
bool mutation = false;
uint256 hash = ComputeMerkleRoot(leaves, &mutation);
uint256 hash = ComputeMerkleRoot(std::vector<uint256>(leaves), &mutation);
leaves[mutation] = hash;
}
}