mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
If the Bridge is unavailable, on my machine it takes 2 seconds to timeout. i.e. call_bridge("enumerate") and BridgeTransport.enumerate() both take 2 seconds each. With this change, if the Bridge is unavailable, DeviceMgr.scan_devices() takes 4 seconds less. In below log, with 6 different hw devices connected, scan time was originally ~7.5 seconds; with this change it became ~3.5 seconds. Now the time is dominated by WebUsbTransport.enumerate(), called by Trezor, KeepKey, SafeT, ~1.1 seconds each. ----- I | plugin.DeviceMgr | scan_devices() entered. 1598666278.6756 I | plugin.DeviceMgr | scan_devices(). _scan_devices_with_hid() DONE. 1598666278.7583 I | plugin.DeviceMgr | scan_devices(). starting custom enumeration loop. 1598666278.7593 I | plugin.DeviceMgr | scan_devices(). custom enumeration iter DONE, for <bound method SafeTPlugin.enumerate of <electrum.plugins.safe_t.qt.Plugin object at 0x000001F60060A730>>. 1598666279.9345 I | plugins.trezor.qt.Plugin | trezor custom enumeration entered. 1598666279.9345 I | plugins.trezor.qt.Plugin | trezor custom enumeration. call_bridge('enumerate') DONE. 1598666281.9385 >> trezorlib enumerating <class 'trezorlib.transport.bridge.BridgeTransport'> DONE at 1598666283.9500. >> trezorlib enumerating <class 'trezorlib.transport.webusb.WebUsbTransport'> DONE at 1598666285.0427. >> trezorlib enumerating <class 'trezorlib.transport.hid.HidTransport'> DONE at 1598666285.1198. >> trezorlib enumerating <class 'trezorlib.transport.udp.UdpTransport'> DONE at 1598666285.1237. I | plugins.trezor.qt.Plugin | trezor custom enumeration. trezorlib.transport.enumerate_devices() DONE. 1598666285.1257 I | plugin.DeviceMgr | scan_devices(). custom enumeration iter DONE, for <bound method TrezorPlugin.enumerate of <electrum.plugins.trezor.qt.Plugin object at 0x000001F60C16F4C0>>. 1598666285.1257 I | plugin.DeviceMgr | scan_devices(). custom enumeration iter DONE, for <bound method KeepKeyPlugin.enumerate of <electrum.plugins.keepkey.qt.Plugin object at 0x000001F60BADF130>>. 1598666286.2251 I | plugin.DeviceMgr | scan_devices(). custom enumeration iter DONE, for <bound method ColdcardPlugin.detect_simulator of <electrum.plugins.coldcard.qt.Plugin object at 0x000001F60BAA5AC0>>. 1598666286.2251 I | plugin.DeviceMgr | scan_devices(). custom enumeration loop DONE. 1598666286.2251 I | plugin.DeviceMgr | scan_devices(). find out what was disconnected DONE. 1598666286.2251 I | plugin.DeviceMgr | scan_devices(). Unpair disconnected devices DONE. 1598666286.2251 |
||
---|---|---|
.. | ||
gui | ||
lnwire | ||
plugins | ||
scripts | ||
tests | ||
wordlist | ||
www@dbba6f5701 | ||
__init__.py | ||
address_synchronizer.py | ||
base_crash_reporter.py | ||
base_wizard.py | ||
bip32.py | ||
bip39_recovery.py | ||
bip39_wallet_formats.json | ||
bitcoin.py | ||
blockchain.py | ||
channel_db.py | ||
checkpoints.json | ||
checkpoints_testnet.json | ||
coinchooser.py | ||
commands.py | ||
constants.py | ||
contacts.py | ||
crypto.py | ||
currencies.json | ||
daemon.py | ||
dns_hacks.py | ||
dnssec.py | ||
ecc.py | ||
ecc_fast.py | ||
electrum | ||
exchange_rate.py | ||
i18n.py | ||
interface.py | ||
invoices.py | ||
json_db.py | ||
keystore.py | ||
lnaddr.py | ||
lnchannel.py | ||
lnhtlc.py | ||
lnmsg.py | ||
lnonion.py | ||
lnpeer.py | ||
lnrouter.py | ||
lnsweep.py | ||
lntransport.py | ||
lnutil.py | ||
lnverifier.py | ||
lnwatcher.py | ||
lnworker.py | ||
logging.py | ||
mnemonic.py | ||
network.py | ||
old_mnemonic.py | ||
paymentrequest.proto | ||
paymentrequest.py | ||
paymentrequest_pb2.py | ||
pem.py | ||
plot.py | ||
plugin.py | ||
qrscanner.py | ||
ripemd.py | ||
rsakey.py | ||
segwit_addr.py | ||
servers.json | ||
servers_regtest.json | ||
servers_testnet.json | ||
simple_config.py | ||
sql_db.py | ||
storage.py | ||
submarine_swaps.py | ||
synchronizer.py | ||
transaction.py | ||
util.py | ||
verifier.py | ||
version.py | ||
wallet.py | ||
wallet_db.py | ||
x509.py |