diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-24 16:48:21 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-24 16:46:54 -0400 |
commit | fabe44e8154a6068d6cba91ec30f00345ed7b275 (patch) | |
tree | 3a492d6528437403fd51a916c868fbafb450ad57 /src/bench/wallet_balance.cpp | |
parent | 8c0f86f284408f316e27702510733289a6a139e7 (diff) | |
download | bitcoin-fabe44e8154a6068d6cba91ec30f00345ed7b275.tar.xz |
bench: Start nodes with -nodebuglogfile
Diffstat (limited to 'src/bench/wallet_balance.cpp')
-rw-r--r-- | src/bench/wallet_balance.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bench/wallet_balance.cpp b/src/bench/wallet_balance.cpp index 05d61fca22..810c344ab5 100644 --- a/src/bench/wallet_balance.cpp +++ b/src/bench/wallet_balance.cpp @@ -14,7 +14,14 @@ static void WalletBalance(benchmark::State& state, const bool set_dirty, const bool add_watchonly, const bool add_mine) { - RegTestingSetup test_setup; + TestingSetup test_setup{ + CBaseChainParams::REGTEST, + /* extra_args */ { + "-nodebuglogfile", + "-nodebug", + }, + }; + const auto& ADDRESS_WATCHONLY = ADDRESS_BCRT1_UNSPENDABLE; NodeContext node; @@ -25,7 +32,7 @@ static void WalletBalance(benchmark::State& state, const bool set_dirty, const b bool first_run; if (wallet.LoadWallet(first_run) != DBErrors::LOAD_OK) assert(false); } - auto handler = chain->handleNotifications({ &wallet, [](CWallet*) {} }); + auto handler = chain->handleNotifications({&wallet, [](CWallet*) {}}); const Optional<std::string> address_mine{add_mine ? Optional<std::string>{getnewaddress(wallet)} : nullopt}; if (add_watchonly) importaddress(wallet, ADDRESS_WATCHONLY); |