From ea961c3d7256c66146b4976ab1293db4a628c0de Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Thu, 28 Sep 2017 14:13:29 -0400 Subject: Remove direct node->wallet calls in init.cpp Route calls during node initialization and shutdown that would happen between a node process and wallet processes through the serializable `Chain::Client` interface, rather than `WalletInitInterface` which is now simpler and only deals with early initialization and parameter interaction. This commit mostly does not change behavior. The only change is that the "Wallet disabled!" and "No wallet support compiled in!" messages are now logged earlier during startup. --- src/wallet/test/init_test_fixture.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wallet/test/init_test_fixture.cpp') diff --git a/src/wallet/test/init_test_fixture.cpp b/src/wallet/test/init_test_fixture.cpp index 1453029c9c..3b828d57f9 100644 --- a/src/wallet/test/init_test_fixture.cpp +++ b/src/wallet/test/init_test_fixture.cpp @@ -8,6 +8,8 @@ InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainName): BasicTestingSetup(chainName) { + m_chain_client = MakeWalletClient(*m_chain, {}); + std::string sep; sep += fs::path::preferred_separator; -- cgit v1.2.3