diff options
author | Ivan Metlushko <metlushko@gmail.com> | 2020-12-18 17:45:11 +0100 |
---|---|---|
committer | Ivan Metlushko <metlushko@gmail.com> | 2021-05-19 08:50:16 +0200 |
commit | e2a47ce08528dfb39c0340145c6977f6afd587f6 (patch) | |
tree | f945e6ef156bfc81e97d47059c3725da9b66088d /src/bench/wallet_balance.cpp | |
parent | 2fa3f30050f2db665605c8371b1fd131f39a2f9b (diff) |
refactor: move first run detection to client code
Diffstat (limited to 'src/bench/wallet_balance.cpp')
-rw-r--r-- | src/bench/wallet_balance.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bench/wallet_balance.cpp b/src/bench/wallet_balance.cpp index d7cc167885..362b7c1e15 100644 --- a/src/bench/wallet_balance.cpp +++ b/src/bench/wallet_balance.cpp @@ -22,8 +22,7 @@ static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const b CWallet wallet{test_setup->m_node.chain.get(), "", CreateMockWalletDatabase()}; { wallet.SetupLegacyScriptPubKeyMan(); - bool first_run; - if (wallet.LoadWallet(first_run) != DBErrors::LOAD_OK) assert(false); + if (wallet.LoadWallet() != DBErrors::LOAD_OK) assert(false); } auto handler = test_setup->m_node.chain->handleNotifications({&wallet, [](CWallet*) {}}); |