Browse Source

trezor: use `init_device` instead of `ping` to check connection (fixes #6457) (#6471)

patch-4
matejcik 4 years ago
committed by GitHub
parent
commit
a669c6b765
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      electrum/plugins/trezor/clientbase.py

3
electrum/plugins/trezor/clientbase.py

@ -112,8 +112,7 @@ class TrezorClientBase(HardwareClientBase, Logger):
return True
try:
res = self.client.ping("electrum pinging device")
assert res == "electrum pinging device"
self.client.init_device()
except BaseException:
return False
return True

Loading…
Cancel
Save