2019-05-06 14:05:28 -04:00
|
|
|
// Copyright (c) 2016-2019 The Bitcoin Core developers
|
2016-08-22 09:24:50 +02:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2017-11-10 13:57:53 +13:00
|
|
|
#include <wallet/test/wallet_test_fixture.h>
|
2016-04-18 14:54:57 +02:00
|
|
|
|
2019-04-17 13:27:02 -04:00
|
|
|
WalletTestingSetup::WalletTestingSetup(const std::string& chainName)
|
|
|
|
: TestingSetup(chainName),
|
|
|
|
m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock())
|
2016-04-18 14:54:57 +02:00
|
|
|
{
|
|
|
|
bool fFirstRun;
|
2017-11-13 21:25:46 -05:00
|
|
|
m_wallet.LoadWallet(fFirstRun);
|
2020-03-10 15:46:20 -04:00
|
|
|
m_chain_notifications_handler = m_chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
|
2017-07-31 11:46:13 -04:00
|
|
|
m_chain_client->registerRpcs();
|
2016-04-18 14:54:57 +02:00
|
|
|
}
|