mirror of
https://github.com/monero-project/monero.git
synced 2024-12-15 04:46:31 +02:00
Merge pull request #4623
99d45a95
wallet_rpc_server: fix change_wallet_password RPC (moneromooo-monero)
This commit is contained in:
commit
c5be5ca6b4
@ -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…
Reference in New Issue
Block a user