wallet_rpc_server: fix change_wallet_password RPC

This commit is contained in:
moneromooo-monero 2018-10-16 15:16:32 +00:00
parent 1afc1d0d26
commit 99d45a9578
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 2 deletions

View File

@ -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)