aboutsummaryrefslogtreecommitdiff
path: root/src/bench/merkle_root.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/merkle_root.cpp')
-rw-r--r--src/bench/merkle_root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/merkle_root.cpp b/src/bench/merkle_root.cpp
index 027b19125d..ae2a0a28dc 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;
}
}