Set defualt highestUsed chained address to -1 (root).
This commit is contained in:
parent
28c679ee82
commit
b495842b0e
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ func NewWallet(name, desc string, passphrase []byte) (*Wallet, error) {
|
||||||
watchingOnly: false,
|
watchingOnly: false,
|
||||||
},
|
},
|
||||||
createDate: time.Now().Unix(),
|
createDate: time.Now().Unix(),
|
||||||
//highestUsed:
|
highestUsed: -1,
|
||||||
kdfParams: *kdfp,
|
kdfParams: *kdfp,
|
||||||
keyGenerator: *root,
|
keyGenerator: *root,
|
||||||
addrMap: make(map[[ripemd160.Size]byte]*btcAddress),
|
addrMap: make(map[[ripemd160.Size]byte]*btcAddress),
|
||||||
|
|
Loading…
Reference in a new issue