Skip to content

Commit fa2bc41

Browse files
author
MarcoFalke
committed
tools: Add unused argsman to bench_bitcoin
1 parent 5447097 commit fa2bc41

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/bench/bench_bitcoin.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static const char* DEFAULT_PLOT_PLOTLYURL = "https://cdn.plot.ly/plotly-latest.m
1717
static const int64_t DEFAULT_PLOT_WIDTH = 1024;
1818
static const int64_t DEFAULT_PLOT_HEIGHT = 768;
1919

20-
static void SetupBenchArgs()
20+
static void SetupBenchArgs(ArgsManager& argsman)
2121
{
2222
SetupHelpOptions(gArgs);
2323

@@ -33,7 +33,8 @@ static void SetupBenchArgs()
3333

3434
int main(int argc, char** argv)
3535
{
36-
SetupBenchArgs();
36+
ArgsManager argsman;
37+
SetupBenchArgs(argsman);
3738
std::string error;
3839
if (!gArgs.ParseParameters(argc, argv, error)) {
3940
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);

src/util/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <string>
1010
#include <vector>
1111

12-
class UniValue;
12+
#include <univalue.h> // For util::SettingsValue = UniValue
1313

1414
namespace util {
1515

0 commit comments

Comments
 (0)