1
0

dbb: do show_address in different thread

This commit is contained in:
SomberNight
2018-03-18 01:46:09 +01:00
parent 45b03d930d
commit 3fb75bc606
2 changed files with 13 additions and 8 deletions

View File

@@ -724,3 +724,13 @@ class DigitalBitboxPlugin(HW_PluginBase):
if client is not None:
client.check_device_dialog()
return client
def show_address(self, wallet, keystore, address):
change, index = wallet.get_address_index(address)
keypath = '%s/%d/%d' % (keystore.derivation, change, index)
xpub = self.get_client(keystore)._get_xpub(keypath)
verify_request_payload = {
"type": 'p2pkh',
"echo": xpub['echo'],
}
self.comserver_post_notification(verify_request_payload)