aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 15:16:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 15:19:05 +0000
commit99d45a95787010fd9e38390b6ab350df8a738287 (patch)
treebec189e24b60a762c323b3c8e65b75ea9e2c650f /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4502 (diff)
downloadmonero-99d45a95787010fd9e38390b6ab350df8a738287.tar.xz
wallet_rpc_server: fix change_wallet_password RPC
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index e0b631aaf..1b63d65b6 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -2822,8 +2822,7 @@ namespace tools
{
try
{
- m_wallet->rewrite(m_wallet->get_wallet_file(), req.new_password);
- m_wallet->store();
+ m_wallet->change_password(m_wallet->get_wallet_file(), req.old_password, req.new_password);
LOG_PRINT_L0("Wallet password changed.");
}
catch (const std::exception& e)