From 41029d6d74e357679ae8fd8aa08272fdedc0ea8b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 30 Nov 2015 11:07:13 +0000 Subject: [PATCH] wallet2: default auto-refresh to true for preexisting wallets --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index ba7fe93b..b189f975 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -918,7 +918,7 @@ void wallet2::load_keys(const std::string& keys_file_name, const std::string& pa m_store_tx_info = (json.HasMember("store_tx_keys") && (json["store_tx_keys"].GetInt() != 0)) || (json.HasMember("store_tx_info") && (json["store_tx_info"].GetInt() != 0)); m_default_mixin = json.HasMember("default_mixin") ? json["default_mixin"].GetUint() : 0; - m_auto_refresh = json.HasMember("auto_refresh") && (json["auto_refresh"].GetInt() != 0); + m_auto_refresh = !json.HasMember("auto_refresh") || (json["auto_refresh"].GetInt() != 0); } const cryptonote::account_keys& keys = m_account.get_keys();