From aeb23bdd81e88f62f227f1abae4f44b17d33b2c3 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 28 May 2020 14:38:27 +0300 Subject: [PATCH] GUI: allow auditable watch-only wallets to be opened --- src/wallet/wallets_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 79c0033f..3dc30737 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -805,7 +805,7 @@ std::string wallets_manager::open_wallet(const std::wstring& path, const std::st try { w->load(path, password); - if (w->is_watch_only()) + if (w->is_watch_only() && !w->is_auditable()) return API_RETURN_CODE_WALLET_WATCH_ONLY_NOT_SUPPORTED; w->get_recent_transfers_history(owr.recent_history.history, 0, txs_to_return, owr.recent_history.total_history_items); //w->get_unconfirmed_transfers(owr.recent_history.unconfirmed);