1
0

hardware wallets: better handle label collision when selecting device

related: #5759
This commit is contained in:
SomberNight
2019-11-17 01:15:44 +01:00
parent 6e3875ceab
commit 56c3de0e1e
2 changed files with 25 additions and 8 deletions

View File

@@ -160,7 +160,12 @@ class HardwareClientBase:
raise NotImplementedError()
def label(self) -> str:
"""The name given by the user to the device."""
"""The name given by the user to the device.
Note: labels are shown to the user to help distinguish their devices,
and they are also used as a fallback to distinguish devices programmatically.
So ideally, different devices would have different labels.
"""
raise NotImplementedError()
def has_usable_connection_with_device(self) -> bool: