Commit 57eb3f3
Fix repeated device enumeration in hardware wallet wizard (Electron-Cash#3192)
choose_hw_device() called unpaired_device_infos() per plugin, and each
call triggered a full scan_devices() across all plugins — creating N²
enumeration calls. Now scan_devices() is called once before the loop
and the cached result is passed via the existing devices= parameter.
Co-authored-by: John Moriarty <JLMoriart@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a51bee2 commit 57eb3f3
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
0 commit comments