mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
bitbox02: add fingerprint to label
See comment in commit.
This commit is contained in:
parent
c0ad40b562
commit
061305cd97
1 changed files with 6 additions and 1 deletions
|
@ -251,7 +251,12 @@ class BitBox02Client(HardwareClientBase):
|
||||||
return super().label()
|
return super().label()
|
||||||
if self.bitbox02_device is None:
|
if self.bitbox02_device is None:
|
||||||
self.pairing_dialog()
|
self.pairing_dialog()
|
||||||
return self.bitbox02_device.device_info()["name"]
|
# We add the fingerprint to the label, as if there are two devices with the same label, the
|
||||||
|
# device manager can mistake one for another and fail.
|
||||||
|
return "%s (%s)" % (
|
||||||
|
self.bitbox02_device.device_info()["name"],
|
||||||
|
self.bitbox02_device.root_fingerprint().hex(),
|
||||||
|
)
|
||||||
|
|
||||||
def request_root_fingerprint_from_device(self) -> str:
|
def request_root_fingerprint_from_device(self) -> str:
|
||||||
if self.bitbox02_device is None:
|
if self.bitbox02_device is None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue