1
0

don't offer recovery type choice for trezor T

This commit is contained in:
SomberNight
2018-05-09 19:08:21 +02:00
parent 364cfd17ae
commit 5fafd34de7
3 changed files with 13 additions and 4 deletions

View File

@@ -233,6 +233,10 @@ class TrezorClientBase(GuiMixin, PrintError):
def atleast_version(self, major, minor=0, patch=0):
return self.firmware_version() >= (major, minor, patch)
def get_trezor_model(self):
"""Returns '1' for Trezor One, 'T' for Trezor T."""
return self.features.model
@staticmethod
def wrapper(func):
'''Wrap methods to clear any message box they opened.'''