db837f1ba3
In this commit, we refactor the wallet's syncing logic with syncWithChain to use the newer, simpler methods: syncToBirthday and recovery. Along the way, we also fix a bug within the wallet where it was possible to sync past the birthday, but not sync to tip completely and restart, which would lead to us starting a rescan from the latest synced height, rather than from the birthday stamp. This commit slightly changes the wallet's syncing behavior to the following: 1. Ensure the wallet is synced to its birthday. 2. Perform a recovery if requested. 3. Check for chain reorgs. 4. Dispatch a rescan from the current synced height. Co-authored-by: Roei Erez <roeierez@gmail.com> |
||
---|---|---|
.. | ||
internal/txsizes | ||
txauthor | ||
txrules | ||
chainntfns.go | ||
chainntfns_test.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.