aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-28 23:43:06 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-28 23:43:06 +0200
commit0ee87e63050c31405182042868a89d4f3f3ac7c2 (patch)
tree3b40dd7eb2ea40cf39df1b14ebafe873011791dc /src
parentMerge pull request #765 (diff)
parentwallet: fix --generate-from-keys saving as watch only (diff)
downloadmonero-0ee87e63050c31405182042868a89d4f3f3ac7c2.tar.xz
Merge pull request #770
878ab5d wallet: fix --generate-from-keys saving as watch only (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 6fd77eead..363665024 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -1214,7 +1214,7 @@ void wallet2::generate(const std::string& wallet_, const std::string& password,
m_account_public_address = account_public_address;
m_watch_only = false;
- bool r = store_keys(m_keys_file, password, true);
+ bool r = store_keys(m_keys_file, password, false);
THROW_WALLET_EXCEPTION_IF(!r, error::file_save_error, m_keys_file);
r = file_io_utils::save_string_to_file(m_wallet_file + ".address.txt", m_account.get_public_address_str(m_testnet));