call wallet->init() instead of wallet->set_daemon to enable methods

supported by remote calls
This commit is contained in:
woodser
2019-07-04 11:59:19 -04:00
parent 8b3e23c472
commit d0fee24c6e
+2 -2
View File
@@ -489,8 +489,8 @@ namespace monero {
try { isTrusted = tools::is_local_address(uri); } // wallet is trusted iff local
catch (const exception &e) { }
// set wallet2 daemon connection
wallet2->set_daemon(uri, login, isTrusted);
// init wallet2 and set daemon connection
if (!wallet2->init(uri, login)) throw runtime_error("Failed to initialize wallet with daemon connection");
}
shared_ptr<MoneroRpcConnection> MoneroWallet::getDaemonConnection() const {