aboutsummaryrefslogtreecommitdiff
path: root/src/bench/descriptors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/descriptors.cpp')
-rw-r--r--src/bench/descriptors.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bench/descriptors.cpp b/src/bench/descriptors.cpp
index 5d6bcb8ce8..c45456645b 100644
--- a/src/bench/descriptors.cpp
+++ b/src/bench/descriptors.cpp
@@ -4,11 +4,16 @@
#include <bench/bench.h>
#include <key.h>
-#include <pubkey.h>
#include <script/descriptor.h>
+#include <script/script.h>
+#include <script/signingprovider.h>
+#include <cassert>
+#include <cstdint>
+#include <memory>
#include <string>
#include <utility>
+#include <vector>
static void ExpandDescriptor(benchmark::Bench& bench)
{
@@ -18,12 +23,12 @@ static void ExpandDescriptor(benchmark::Bench& bench)
const std::pair<int64_t, int64_t> range = {0, 1000};
FlatSigningProvider provider;
std::string error;
- auto desc = Parse(desc_str, provider, error);
+ auto descs = Parse(desc_str, provider, error);
bench.run([&] {
for (int i = range.first; i <= range.second; ++i) {
std::vector<CScript> scripts;
- bool success = desc->Expand(i, provider, scripts, provider);
+ bool success = descs[0]->Expand(i, provider, scripts, provider);
assert(success);
}
});