Set defualt highestUsed chained address to -1 (root).

This commit is contained in:
Josh Rickmar 2013-09-03 16:35:07 -04:00
parent 28c679ee82
commit b495842b0e

View file

@ -380,7 +380,7 @@ func NewWallet(name, desc string, passphrase []byte) (*Wallet, error) {
watchingOnly: false,
},
createDate: time.Now().Unix(),
//highestUsed:
highestUsed: -1,
kdfParams: *kdfp,
keyGenerator: *root,
addrMap: make(map[[ripemd160.Size]byte]*btcAddress),