remove enumerate in HWIBridge init (#2371)

* remove enumerate in HWIBridge init

* fix test
This commit is contained in:
Stepan Snigirev 2023-09-05 11:16:33 +02:00 committed by GitHub
parent 622e111ba0
commit 2808be1ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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=""):