Don't decrypt keys in view only wallets in wallet_keys_unlocker
This commit is contained in:
parent
31bdf7bd11
commit
d2c95ab941
|
@ -867,7 +867,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…
Reference in New Issue