diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-15 12:50:05 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-25 12:49:25 +0000 |
| commit | a8b98a0bd72b5cd230b69257d8f534a81a83bb18 (patch) | |
| tree | be1ada14388ccd6527ac692d44993cb673644214 /src/wallet/wallet2.cpp | |
| parent | ea07a9bc61a87903cc338d6227f90fabb6c75c86 (diff) | |
| download | monzero-core-a8b98a0bd72b5cd230b69257d8f534a81a83bb18.tar.gz monzero-core-a8b98a0bd72b5cd230b69257d8f534a81a83bb18.tar.xz monzero-core-a8b98a0bd72b5cd230b69257d8f534a81a83bb18.zip | |
wallet: fix memory only wallets
at least when using restore_deterministic_wallet
Diffstat (limited to 'src/wallet/wallet2.cpp')
| -rw-r--r-- | src/wallet/wallet2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 8bb886c6d..64337f85f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3460,7 +3460,8 @@ void wallet2::change_password(const std::string &filename, const epee::wipeable_ decrypt_keys(original_password); setup_keys(new_password); rewrite(filename, new_password); - store(); + if (!filename.empty()) + store(); } //---------------------------------------------------------------------------------------------------- /*! @@ -5142,7 +5143,8 @@ std::string wallet2::path() const //---------------------------------------------------------------------------------------------------- void wallet2::store() { - store_to("", epee::wipeable_string()); + if (!m_wallet_file.empty()) + store_to("", epee::wipeable_string()); } //---------------------------------------------------------------------------------------------------- void wallet2::store_to(const std::string &path, const epee::wipeable_string &password) |
