mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
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()
|
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
|
// transactions to all active wallet addresses. This is needed for
|
||||||
// catching btcwallet up to a long-running btcd process, as otherwise
|
// catching btcwallet up to a long-running btcd process, as otherwise
|
||||||
// it would have missed notifications as blocks are attached to the
|
// it would have missed notifications as blocks are attached to the
|
||||||
|
|
|
@ -712,9 +712,8 @@ func (w *Wallet) NextUnusedAddress() (string, error) {
|
||||||
if !ok {
|
if !ok {
|
||||||
// TODO(jrick): Re-fill key pool.
|
// TODO(jrick): Re-fill key pool.
|
||||||
return "", errors.New("cannot find generated address")
|
return "", errors.New("cannot find generated address")
|
||||||
} else {
|
|
||||||
w.highestUsed++
|
|
||||||
}
|
}
|
||||||
|
w.highestUsed++
|
||||||
|
|
||||||
// Look up address.
|
// Look up address.
|
||||||
addr := w.addrMap[next160]
|
addr := w.addrMap[next160]
|
||||||
|
|
Loading…
Add table
Reference in a new issue