From 2808be1ae367e1c8a5827f5a78380cca1e93919d Mon Sep 17 00:00:00 2001 From: Stepan Snigirev Date: Tue, 5 Sep 2023 11:16:33 +0200 Subject: [PATCH] remove enumerate in HWIBridge init (#2371) * remove enumerate in HWIBridge init * fix test --- src/cryptoadvance/specter/hwi_rpc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cryptoadvance/specter/hwi_rpc.py b/src/cryptoadvance/specter/hwi_rpc.py index 5edf40053b..d9fd32d8e0 100644 --- a/src/cryptoadvance/specter/hwi_rpc.py +++ b/src/cryptoadvance/specter/hwi_rpc.py @@ -81,11 +81,7 @@ def __init__(self): "extract_master_blinding_key": self.extract_master_blinding_key, "bitbox02_pairing": self.bitbox02_pairing, } - # Running enumerate after beginning an interaction with a specific device - # crashes python or make HWI misbehave. For now we just get all connected - # devices once per session and save them. - logger.info("Initializing HWI...") # to explain user why it takes so long - self.enumerate() + self.devices = [] @locked(hwilock) def enumerate(self, passphrase="", chain=""):