diff --git a/account.go b/account.go index e0cf06d..12f233c 100644 --- a/account.go +++ b/account.go @@ -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 diff --git a/wallet/wallet.go b/wallet/wallet.go index 412b0c1..1f946cf 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -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]