Пример #1
0
 def __init__(self, handler, plugin, proto):
     assert hasattr(self, 'tx_api')  # ProtocolMixin already constructed?
     HardwareClientBase.__init__(self, plugin=plugin)
     self.proto = proto
     self.device = plugin.device
     self.handler = handler
     self.tx_api = plugin
     self.types = plugin.types
     self.msg = None
     self.creating_wallet = False
     Logger.__init__(self)
     self.used()
Пример #2
0
    def __init__(self, transport, handler, plugin):
        HardwareClientBase.__init__(self, plugin=plugin)
        if plugin.is_outdated_fw_ignored():
            TrezorClient.is_outdated = lambda *args, **kwargs: False
        self.client = TrezorClient(transport, ui=self)
        self.device = plugin.device
        self.handler = handler
        Logger.__init__(self)

        self.msg = None
        self.creating_wallet = False

        self.in_flow = False

        self.used()