Remove use of CRPCTable::appendCommand in wallet code

This commit does not change behavior.
This commit is contained in:
Russell Yanofsky committed 2019-03-05 10:20:00 -04:00
1 parent 91868e6288
commit 4e4d9e9f85
10 files changed
+128 -40

No files matched your search

+1 -1
View File
@@ -15,5 +15,5 @@ WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
m_wallet.LoadWallet(fFirstRun);
m_wallet.m_chain_notifications_handler = m_chain->handleNotifications(m_wallet);
RegisterWalletRPCCommands(tableRPC);
m_chain_client->registerRpcs();
}
+1
View File
@@ -19,6 +19,7 @@ struct WalletTestingSetup: public TestingSetup {
explicit WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
std::unique_ptr<interfaces::Chain> m_chain = interfaces::MakeChain();
std::unique_ptr<interfaces::ChainClient> m_chain_client = interfaces::MakeWalletClient(*m_chain, {});
CWallet m_wallet;
};