fix #2410
This commit is contained in:
@@ -42,7 +42,7 @@ class TrezorCompatibleKeyStore(Hardware_KeyStore):
|
|||||||
client = self.get_client()
|
client = self.get_client()
|
||||||
address_path = self.get_derivation() + "/%d/%d"%sequence
|
address_path = self.get_derivation() + "/%d/%d"%sequence
|
||||||
address_n = client.expand_path(address_path)
|
address_n = client.expand_path(address_path)
|
||||||
msg_sig = client.sign_message(self.get_coin_name(), address_n, message)
|
msg_sig = client.sign_message(self.plugin.get_coin_name(), address_n, message)
|
||||||
return msg_sig.signature
|
return msg_sig.signature
|
||||||
|
|
||||||
def sign_transaction(self, tx, password):
|
def sign_transaction(self, tx, password):
|
||||||
@@ -145,10 +145,7 @@ class TrezorCompatiblePlugin(HW_PluginBase):
|
|||||||
return client
|
return client
|
||||||
|
|
||||||
def get_coin_name(self):
|
def get_coin_name(self):
|
||||||
if TESTNET:
|
return "Testnet" if TESTNET else "Bitcoin"
|
||||||
return "Testnet"
|
|
||||||
else:
|
|
||||||
return "Bitcoin"
|
|
||||||
|
|
||||||
def initialize_device(self, device_id, wizard, handler):
|
def initialize_device(self, device_id, wizard, handler):
|
||||||
# Initialization method
|
# Initialization method
|
||||||
|
|||||||
Reference in New Issue
Block a user