Line data Source code
1 : // Copyright (c) 2016-2020 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 : 7 18 : WalletTestingSetup::WalletTestingSetup(const std::string& chainName) 8 9 : : TestingSetup(chainName), 9 9 : m_wallet(m_chain.get(), "", CreateMockWalletDatabase()) 10 9 : { 11 9 : bool fFirstRun; 12 9 : m_wallet.LoadWallet(fFirstRun); 13 18 : m_chain_notifications_handler = m_chain->handleNotifications({ &m_wallet, [](CWallet*) {} }); 14 9 : m_wallet_client->registerRpcs(); 15 9 : }