mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 17:26:11 -04:00
Merge pull request #5131
d2c95ab9
Don't decrypt keys in view only wallets in wallet_keys_unlocker (Doyle)
This commit is contained in:
commit
66014706bb
1 changed files with 1 additions and 1 deletions
|
@ -892,7 +892,7 @@ wallet_keys_unlocker::wallet_keys_unlocker(wallet2 &w, const boost::optional<too
|
||||||
w(w),
|
w(w),
|
||||||
locked(password != boost::none)
|
locked(password != boost::none)
|
||||||
{
|
{
|
||||||
if (!locked || w.is_unattended() || w.ask_password() != tools::wallet2::AskPasswordToDecrypt)
|
if (!locked || w.is_unattended() || w.ask_password() != tools::wallet2::AskPasswordToDecrypt || w.watch_only())
|
||||||
{
|
{
|
||||||
locked = false;
|
locked = false;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue