1 // Copyright (c) 2016-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #include <wallet/test/wallet_test_fixture.h>
6 
WalletTestingSetup(const std::string & chainName)7 WalletTestingSetup::WalletTestingSetup(const std::string& chainName)
8     : TestingSetup(chainName),
9       m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock())
10 {
11     bool fFirstRun;
12     m_wallet.LoadWallet(fFirstRun);
13     m_chain_notifications_handler = m_chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
14     m_chain_client->registerRpcs();
15 }
16