Revert "revert removal of enumerate (#2378)"

This reverts commit 23ad11975b.
This commit is contained in:
k9ert 2023-09-19 16:04:49 +02:00 committed by GitHub
parent 2c8e5533a0
commit a2be0ab716

View file

@ -81,11 +81,7 @@ class HWIBridge(JSONRPC):
"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=""):