refactor: move first run detection to client code

This commit is contained in:
Ivan Metlushko
2020-12-18 17:45:11 +01:00
parent 2fa3f30050
commit e2a47ce085
10 changed files with 16 additions and 24 deletions

View File

@@ -297,8 +297,7 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)
empty_wallet();
{
std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain.get(), "", CreateMockWalletDatabase());
bool firstRun;
wallet->LoadWallet(firstRun);
wallet->LoadWallet();
wallet->SetupLegacyScriptPubKeyMan();
LOCK(wallet->cs_wallet);
add_coin(*wallet, 5 * CENT, 6 * 24, false, 0, true);