From 477dd8e47824250f35d407b17dad05ed226df019 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 1 Jun 2025 10:52:52 +0200 Subject: [PATCH] CLI list_wallets: fix logical error in 'unlocked' value --- electrum/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/commands.py b/electrum/commands.py index 78546f7bb..d993af60e 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -264,7 +264,7 @@ class Commands(Logger): { 'path': path, '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() ]