Skip to content

Commit 2808be1

Browse files
remove enumerate in HWIBridge init (#2371)
* remove enumerate in HWIBridge init * fix test
1 parent 622e111 commit 2808be1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cryptoadvance/specter/hwi_rpc.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ def __init__(self):
8181
"extract_master_blinding_key": self.extract_master_blinding_key,
8282
"bitbox02_pairing": self.bitbox02_pairing,
8383
}
84-
# Running enumerate after beginning an interaction with a specific device
85-
# crashes python or make HWI misbehave. For now we just get all connected
86-
# devices once per session and save them.
87-
logger.info("Initializing HWI...") # to explain user why it takes so long
88-
self.enumerate()
84+
self.devices = []
8985

9086
@locked(hwilock)
9187
def enumerate(self, passphrase="", chain=""):

0 commit comments

Comments
 (0)