aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorkenshi84 <kenshi84@protonmail.ch>2016-12-26 18:33:24 +0900
committerkenshi84 <kenshi84@protonmail.ch>2016-12-26 18:33:24 +0900
commit5f4ac6b90901e9de47fccdd1cff2b9f558fefe6f (patch)
treeaeba4ec3d4c8dcf7ba294f4b2c611bc80f10e0de /src/wallet/wallet2.cpp
parentMerge pull request #1487 (diff)
downloadmonero-5f4ac6b90901e9de47fccdd1cff2b9f558fefe6f.tar.xz
wallet2 bugfix: store watch_only flag properly with rewrite()
Diffstat (limited to 'src/wallet/wallet2.cpp')
-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 221dd8e0b..ea7773462 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2139,7 +2139,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);
}
/*!