zenon-network / syrius

MIT License
18 stars 15 forks source link

Ledger does not connect to sryius if you change USB port on macOS #87

Closed 0x3639 closed 6 months ago

0x3639 commented 6 months ago

Describe the bug When you disconnect your Leger device and plug it into a new USB port the ledger device cannot be found by syrius on a macOS.

To Reproduce Steps to reproduce the behavior:

  1. Plug in the Ledger and active the app
  2. Open syrius and the device is found
  3. Close syrius and unplug the ledger device
  4. Plug the ledger device into a new USB port and activate the app
  5. Open syrius and perform any action that required the ledger

Expected behavior I would expect syrius to find the ledger device on anyUSB port.

Workaround Reset the wallet in settings. Open and close syrius. Scan for the ledger and connect the hardware wallet. Proceed through the setup prompts and the device is found.

Screenshots image

Desktop (please complete the following information):

Additional context It appears the macOS creates a new UID for the ledger when it is plugged into a new port. I believe syrius assumes the UID does not change once it's connected.

I evaluated all devices with diskutil info -all

Ledger in Port 1 = disk3s1 The UUID for disk3s1 was C779D85A-0260-4B39-BC37-77B65C0E839D

Ledger in Port 2 = disk3s1s1 The UUID for disk3s1s1 was 8332C4C2-7563-4F36-90D8-C937085E1701

Bounty program