aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2018-08-27 15:04:43 -0700
committerJim Posen <jim.posen@gmail.com>2018-11-06 09:12:54 -0800
commit20b812993ae584e4a4b12faa5c8751aa04dfde81 (patch)
treea7fb1808f9b0b3b01dea63e1e1073d962710e9b8 /src/bench
parent6af27b81572b7b8e08ebcfe7eb533f40c66be4af (diff)
downloadbitcoin-20b812993ae584e4a4b12faa5c8751aa04dfde81.tar.xz
blockfilter: Refactor GCS params into struct.
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/gcs_filter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/gcs_filter.cpp b/src/bench/gcs_filter.cpp
index 6f4e384e3b..535ad35571 100644
--- a/src/bench/gcs_filter.cpp
+++ b/src/bench/gcs_filter.cpp
@@ -17,7 +17,7 @@ static void ConstructGCSFilter(benchmark::State& state)
uint64_t siphash_k0 = 0;
while (state.KeepRunning()) {
- GCSFilter filter(siphash_k0, 0, 20, 1 << 20, elements);
+ GCSFilter filter({siphash_k0, 0, 20, 1 << 20}, elements);
siphash_k0++;
}
@@ -32,7 +32,7 @@ static void MatchGCSFilter(benchmark::State& state)
element[1] = static_cast<unsigned char>(i >> 8);
elements.insert(std::move(element));
}
- GCSFilter filter(0, 0, 20, 1 << 20, elements);
+ GCSFilter filter({0, 0, 20, 1 << 20}, elements);
while (state.KeepRunning()) {
filter.Match(GCSFilter::Element());