From 1ff67707e443debadba09a4e21523712bdcf1811 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 19 Nov 2013 20:46:16 -0500 Subject: [PATCH] Fix issues found by golint. --- account.go | 2 +- wallet/wallet.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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]