Branch data 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 : : WalletTestingSetup::WalletTestingSetup(const std::string& chainName) # 8 : : : TestingSetup(chainName), # 9 : : m_wallet(m_node.chain.get(), "", CreateMockWalletDatabase()) # 10 : 9 : { # 11 : 9 : m_wallet.LoadWallet(); # 12 : 9 : m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} }); # 13 : 9 : m_wallet_client->registerRpcs(); # 14 : 9 : }