From d0fee24c6e8f43ef5e797b6bfabafe66e5ef241c Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 4 Jul 2019 11:59:19 -0400 Subject: [PATCH] call wallet->init() instead of wallet->set_daemon to enable methods supported by remote calls --- src/wallet/MoneroWallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index dd464f2..ffdd785 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -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 MoneroWallet::getDaemonConnection() const {