wallet_rpc_server: fix change_wallet_password RPC

release-v0.5.1
moneromooo-monero 6 years ago committed by wowario
parent 4fccdaea6a
commit 5ebebc1420
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

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

Loading…
Cancel
Save