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
|
|
@ -340,12 +340,13 @@ func (w *wallet) selfDerive() {
|
|||
var (
|
||||
accs []accounts.Account
|
||||
paths []accounts.DerivationPath
|
||||
|
||||
nextPaths = append([]accounts.DerivationPath{}, w.deriveNextPaths...)
|
||||
nextAddrs = append([]common.Address{}, w.deriveNextAddrs...)
|
||||
|
||||
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 empty := false; !empty; {
|
||||
// Retrieve the next derived Ethereum account
|
||||
|
|
|
|||
Loading…
Reference in a new issue