diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-04-17 13:27:02 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-04-17 14:20:44 -0400 |
commit | fad7c33342cb51b310a7dd372bfa675df8810367 (patch) | |
tree | 64bc06d2bdd76ca1dc13d9be5a28d6462e07e990 /src/wallet/test/wallet_test_fixture.cpp | |
parent | fa46ac3127142358116c8473741708b3bb70ca15 (diff) |
refactor: Add handleNotifications method to wallet
Further stylistic cleanups in touched files:
* Sort the includes
* Wrap long single-line constructors into multiple lines
Diffstat (limited to 'src/wallet/test/wallet_test_fixture.cpp')
-rw-r--r-- | src/wallet/test/wallet_test_fixture.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wallet/test/wallet_test_fixture.cpp b/src/wallet/test/wallet_test_fixture.cpp index 7b82994539..6526e69eea 100644 --- a/src/wallet/test/wallet_test_fixture.cpp +++ b/src/wallet/test/wallet_test_fixture.cpp @@ -8,12 +8,13 @@ #include <wallet/db.h> #include <wallet/rpcwallet.h> -WalletTestingSetup::WalletTestingSetup(const std::string& chainName): - TestingSetup(chainName), m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock()) +WalletTestingSetup::WalletTestingSetup(const std::string& chainName) + : TestingSetup(chainName), + m_wallet(m_chain.get(), WalletLocation(), WalletDatabase::CreateMock()) { bool fFirstRun; m_wallet.LoadWallet(fFirstRun); - m_wallet.m_chain_notifications_handler = m_chain->handleNotifications(m_wallet); + m_wallet.handleNotifications(); m_chain_client->registerRpcs(); } |