aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:38:19 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:38:19 -0800
commit0ce4618bea4b50345883464437f57c6e9136eaba (patch)
tree7752d702db0af44ed59112740582ccdc92451dd6 /src/wallet
parentMerge pull request #1503 (diff)
parentwallet2 bugfix: store watch_only flag properly with rewrite() (diff)
downloadmonero-0ce4618bea4b50345883464437f57c6e9136eaba.tar.xz
Merge pull request #1504
5f4ac6b9 wallet2 bugfix: store watch_only flag properly with rewrite() (kenshi84)
Diffstat (limited to 'src/wallet')
-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 e0a3a23bd..f2f741f02 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2138,7 +2138,7 @@ void wallet2::rewrite(const std::string& wallet_name, const std::string& passwor
prepare_file_names(wallet_name);
boost::system::error_code ignored_ec;
THROW_WALLET_EXCEPTION_IF(!boost::filesystem::exists(m_keys_file, ignored_ec), error::file_not_found, m_keys_file);
- bool r = store_keys(m_keys_file, password, false);
+ bool r = store_keys(m_keys_file, password, m_watch_only);
THROW_WALLET_EXCEPTION_IF(!r, error::file_save_error, m_keys_file);
}
/*!