diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-16 18:23:30 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-16 18:23:30 +0200 |
commit | c5be5ca6b4fdf470f17776d4255113f1481d2522 (patch) | |
tree | 3014443c2039b2939f331aab117bcedffa34b0b4 | |
parent | Merge pull request #4621 (diff) | |
parent | wallet_rpc_server: fix change_wallet_password RPC (diff) | |
download | monero-c5be5ca6b4fdf470f17776d4255113f1481d2522.tar.xz |
Merge pull request #4623
99d45a95 wallet_rpc_server: fix change_wallet_password RPC (moneromooo-monero)
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 3 |
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) |