Merge pull request #4623

99d45a95 wallet_rpc_server: fix change_wallet_password RPC (moneromooo-monero)
release-v0.5.0
Riccardo Spagni 6 years ago
commit c5be5ca6b4
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

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

Loading…
Cancel
Save