mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Update wallet.go
This commit is contained in:
parent
0aedc0787f
commit
7fea3668e6
1 changed files with 7 additions and 6 deletions
|
|
@ -338,14 +338,15 @@ func (w *wallet) selfDerive() {
|
||||||
}
|
}
|
||||||
// Device lock obtained, derive the next batch of accounts
|
// Device lock obtained, derive the next batch of accounts
|
||||||
var (
|
var (
|
||||||
accs []accounts.Account
|
accs []accounts.Account
|
||||||
paths []accounts.DerivationPath
|
paths []accounts.DerivationPath
|
||||||
|
|
||||||
nextPaths = append([]accounts.DerivationPath{}, w.deriveNextPaths...)
|
|
||||||
nextAddrs = append([]common.Address{}, w.deriveNextAddrs...)
|
|
||||||
|
|
||||||
context = context.Background()
|
context = context.Background()
|
||||||
|
nextAddrs = append([]common.Address{}, w.deriveNextAddrs...)
|
||||||
)
|
)
|
||||||
|
nextPaths := make([]accounts.DerivationPath, len(w.deriveNextPaths))
|
||||||
|
for i, path := range w.deriveNextPaths {
|
||||||
|
nextPaths[i] = append(accounts.DerivationPath(nil), path...)
|
||||||
|
}
|
||||||
for i := 0; i < len(nextAddrs); i++ {
|
for i := 0; i < len(nextAddrs); i++ {
|
||||||
for empty := false; !empty; {
|
for empty := false; !empty; {
|
||||||
// Retrieve the next derived Ethereum account
|
// Retrieve the next derived Ethereum account
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue