aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-12-13 13:52:01 +0200
committerRiccardo Spagni <ric@spagni.net>2014-12-13 13:52:03 +0200
commitc3ec723882d1f7a63937922520c50ce8f39d25ca (patch)
tree9ae69241fb5eee2286ce1875c2026c8fe939e945 /src
parentc1bf8fb94b217f9ec63ac484991fa48271ad93b3 (diff)
parentd7aafd555a032b02ea8c593a4cba0e0f24d23c0c (diff)
downloadmonzero-core-c3ec723882d1f7a63937922520c50ce8f39d25ca.tar.gz
monzero-core-c3ec723882d1f7a63937922520c50ce8f39d25ca.tar.xz
monzero-core-c3ec723882d1f7a63937922520c50ce8f39d25ca.zip
Merge pull request #202
d7aafd5 wallet2::rewrite update to not require bin file (warptangent)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index e55ad5a58..da181e9d9 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -664,11 +664,9 @@ 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_wallet_file, ignored_ec), error::file_not_found, m_wallet_file);
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);
THROW_WALLET_EXCEPTION_IF(!r, error::file_save_error, m_keys_file);
- store();
}
//----------------------------------------------------------------------------------------------------
void wallet2::wallet_exists(const std::string& file_path, bool& keys_file_exists, bool& wallet_file_exists)