mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
call wallet->init() instead of wallet->set_daemon to enable methods
supported by remote calls
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user