Skip to content

Commit 23ad119

Browse files
author
k9ert
authored
revert removal of enumerate (#2378)
1 parent 2808be1 commit 23ad119

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cryptoadvance/specter/hwi_rpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ def __init__(self):
8181
"extract_master_blinding_key": self.extract_master_blinding_key,
8282
"bitbox02_pairing": self.bitbox02_pairing,
8383
}
84-
self.devices = []
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()
8589

8690
@locked(hwilock)
8791
def enumerate(self, passphrase="", chain=""):

0 commit comments

Comments
 (0)