We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188f73e commit 5801db3Copy full SHA for 5801db3
accounts/usbwallet/wallet.go
@@ -343,6 +343,8 @@ func (w *wallet) selfDerive() {
343
context = context.Background()
344
nextAddrs = append([]common.Address{}, w.deriveNextAddrs...)
345
)
346
+ // Deep-copy derivation paths so updates inside this section don't mutate
347
+ // w.deriveNextPaths while we only hold stateLock.RLock.
348
nextPaths := make([]accounts.DerivationPath, len(w.deriveNextPaths))
349
for i, path := range w.deriveNextPaths {
350
nextPaths[i] = append(accounts.DerivationPath(nil), path...)
0 commit comments