Fix issues found by golint.
This commit is contained in:
parent
7e0a24950a
commit
1ff67707e4
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue