Initialize passphrase cache at UI c-tor

This commit is contained in:
Roman Zeyde
2020-04-29 21:59:17 +03:00
parent 8c22e5030b
commit 52d840cbbb
3 changed files with 2 additions and 7 deletions

View File

@@ -274,8 +274,6 @@ def main(device_type):
# override default PIN/passphrase entry tools (relevant for TREZOR/Keepkey):
device_type.ui = device.ui.UI(device_type=device_type, config=vars(args))
device_type.ui.cached_passphrase_ack = util.ExpiringCache(
args.cache_expiry_seconds)
conn = JustInTimeConnection(
conn_factory=lambda: client.Client(device_type()),