diff options
| author | Pieter Wuille <[email protected]> | 2017-09-27 18:50:31 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-05-29 14:17:07 -0700 |
| commit | 1f0e7ca09c9d7c5787c218156fa5096a1bdf2ea8 (patch) | |
| tree | 7b911a2d3600b45ac4c9f14a034ba3ad2f724b29 /src/bench | |
| parent | Specialized double sha256 for 64 byte inputs (diff) | |
| download | discoin-1f0e7ca09c9d7c5787c218156fa5096a1bdf2ea8.tar.xz discoin-1f0e7ca09c9d7c5787c218156fa5096a1bdf2ea8.zip | |
Use SHA256D64 in Merkle root computation
Diffstat (limited to 'src/bench')
| -rw-r--r-- | src/bench/merkle_root.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/merkle_root.cpp b/src/bench/merkle_root.cpp index 027b19125..ae2a0a28d 100644 --- a/src/bench/merkle_root.cpp +++ b/src/bench/merkle_root.cpp @@ -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; } } |