In this commit, we add a sanity check for the wallet's birthday block before syncing as a result of the migration that populated it for existing wallets. This is done as the second part to the migration to ensure we do not miss any relevant events throughout rescans. The sanity check performs two main checks: whether the birthday block timestamp reflects a time before the birthday timestamp and whether the delta between these two timestamps is a reasonable amount. The birthday block is then found as the first candidate that satisfies both of these conditions. |
||
---|---|---|
.. | ||
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.