In this commit, we relax the initial sync detection logic a bit. We do this as right now, if a user creates an address during the sync point, if they restart, then we'll fall back to performing a rescan from that height as we'll detect that we aren't performing the initial sync, so won't pick up the birthday timestamp. To fix this, we now declare that if we have no UTXO's, then we're still performing the initial sync. This solves this issue as when the user restarts, we'll continue to wait for the backend to sync, and pick up the proper birthday height before we attempt to scan forward for the rescan. However, the one tradeoff is that we'll now always start the rescan from the birthday height until the wallet has gained it's first UTXO. I don't think this is too bad, as after all, the point of a wallet is to manage utxos. |
||
---|---|---|
.. | ||
internal/txsizes | ||
txauthor | ||
txrules | ||
chainntfns.go | ||
common.go | ||
createtx.go | ||
disksync.go | ||
doc.go | ||
loader.go | ||
log.go | ||
multisig.go | ||
notifications.go | ||
README.md | ||
recovery.go | ||
recovery_test.go | ||
rescan.go | ||
unstable.go | ||
utxos.go | ||
wallet.go |
wallet
[]
(https://travis-ci.org/btcsuite/btcwallet)
Feature Overview
TODO: Flesh out this section
Documentation
[]
(http://godoc.org/github.com/btcsuite/btcwallet/wallet)
Full go doc
style documentation for the project can be viewed online without
installing this package by using the GoDoc site here:
http://godoc.org/github.com/btcsuite/btcwallet/wallet
You can also view the documentation locally once the package is installed with
the godoc
tool by running godoc -http=":6060"
and pointing your browser to
http://localhost:6060/pkg/github.com/btcsuite/btcwallet/wallet
Installation
$ go get github.com/btcsuite/btcwallet/wallet
Package wallet is licensed under the copyfree ISC License.