aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 14:46:17 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 14:46:17 +0000
commit0cdd4b074ebab612d7d0a6ebaf3efffb1f9435ef (patch)
tree876cb3d60eb4dfdc983cc47be38328fc95cf9171 /src/wallet/api/wallet.cpp
parentMerge pull request #4502 (diff)
downloadmonero-0cdd4b074ebab612d7d0a6ebaf3efffb1f9435ef.tar.xz
wallet2_api: fix generating new wallet in the GUI
It was creating a new wallet without a password first (this should be fixed), then not changing the password correctly
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-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());