CLI list_wallets: fix logical error in 'unlocked' value
This commit is contained in:
@@ -264,7 +264,7 @@ class Commands(Logger):
|
|||||||
{
|
{
|
||||||
'path': path,
|
'path': path,
|
||||||
'synchronized': w.is_up_to_date(),
|
'synchronized': w.is_up_to_date(),
|
||||||
'unlocked': w.has_password() and (w.get_unlocked_password() is not None),
|
'unlocked': not w.has_password() or (w.get_unlocked_password() is not None),
|
||||||
}
|
}
|
||||||
for path, w in self.daemon.get_wallets().items()
|
for path, w in self.daemon.get_wallets().items()
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user