Merge pull request #4624

7ae3ebc7 wallet_rpc_server: fix change_wallet_password RPC (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-16 18:22:35 +02:00
commit d661169c03
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 2 deletions

View File

@ -2822,8 +2822,7 @@ namespace tools
{ {
try try
{ {
m_wallet->rewrite(m_wallet->get_wallet_file(), req.new_password); m_wallet->change_password(m_wallet->get_wallet_file(), req.old_password, req.new_password);
m_wallet->store();
LOG_PRINT_L0("Wallet password changed."); LOG_PRINT_L0("Wallet password changed.");
} }
catch (const std::exception& e) catch (const std::exception& e)