1
0

hardware wallets: fix sign_transaction in resstored wallets

This commit is contained in:
ThomasV
2015-11-04 19:13:24 +01:00
parent 55494e4224
commit c86ef5e8b0
3 changed files with 12 additions and 0 deletions

View File

@@ -445,6 +445,8 @@ class KeepKeyWallet(BIP32_HD_Wallet):
#return str(decrypted_msg)
def sign_message(self, address, message, password):
if self.has_seed():
return BIP32_HD_Wallet.sign_message(self, address, message, password)
if not self.check_proper_device():
give_error('Wrong device or password')
try:
@@ -461,6 +463,8 @@ class KeepKeyWallet(BIP32_HD_Wallet):
return msg_sig.signature
def sign_transaction(self, tx, password):
if self.has_seed():
return BIP32_HD_Wallet.sign_transaction(self, tx, password)
if tx.is_complete():
return
if not self.check_proper_device():