Fix issues found by golint.

This commit is contained in:
Josh Rickmar 2013-11-19 20:46:16 -05:00
parent 7e0a24950a
commit 1ff67707e4
2 changed files with 2 additions and 3 deletions

View file

@ -247,7 +247,7 @@ func (a *Account) Track() {
a.UtxoStore.RUnlock()
}
// RescanActiveAddresse requests btcd to rescan the blockchain for new
// RescanActiveAddresses requests btcd to rescan the blockchain for new
// transactions to all active wallet addresses. This is needed for
// catching btcwallet up to a long-running btcd process, as otherwise
// it would have missed notifications as blocks are attached to the

View file

@ -712,9 +712,8 @@ func (w *Wallet) NextUnusedAddress() (string, error) {
if !ok {
// TODO(jrick): Re-fill key pool.
return "", errors.New("cannot find generated address")
} else {
w.highestUsed++
}
w.highestUsed++
// Look up address.
addr := w.addrMap[next160]