aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-16 17:14:09 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-16 17:14:09 +0200
commitccc7e3afaeeb0438dec53ff21e84a155aa7df551 (patch)
treea47347b8a0e7a7aa98a6f0c56d760c2d1d394a07
parentMerge pull request #4598 (diff)
parentwallet2_api: fix generating new wallet in the GUI (diff)
downloadmonero-ccc7e3afaeeb0438dec53ff21e84a155aa7df551.tar.xz
Merge pull request #4622
32ba6f3a wallet2_api: fix generating new wallet in the GUI (moneromooo-monero)
-rw-r--r--src/wallet/api/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index de1bfdae1..bb1ba83ca 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -776,7 +776,7 @@ bool WalletImpl::setPassword(const std::string &password)
{
clearStatus();
try {
- m_wallet->rewrite(m_wallet->get_wallet_file(), password);
+ m_wallet->change_password(m_wallet->get_wallet_file(), m_password, password);
m_password = password;
} catch (const std::exception &e) {
setStatusError(e.what());