wizardsardine / async-hwi

⚠️ The interface is not finalized 🚧 and currently specific to our needs with Liana
BSD 3-Clause "New" or "Revised" License
28 stars 17 forks source link

Weird behaviour w/ `Ledger<TransportHID>` when closing Ledger bitcoin App #95

Open pythcoiner opened 3 months ago

pythcoiner commented 3 months ago

Hit this while working on the ledger app upgrade integration in Liana: If a Ledger<TransportHID> stay open and the user quit the bitcoin app, the device node under linux (/dev/hidrawxx) will be incremented, so in this context calling DeviceInfo.path() will return a different value before & after closing bitcoin app.

I don't think it's related to how its implemented in async-hwi, but think it worth share this.