2698f8434e
In this commit, we speed up creating a fresh wallet when using the btcd backend. Before this commit, we would need to rescan 10k or so blocks when creating a new wallet with the btcd backend. btcd will actually fully scan all the blocks even though we have zero addresses or UTXOs to look for. As a result, this can take quite some time. In this commit we modify the starting height of the initial rescan to start at the birthday height, and only modify it if it's unset, or the best height of the chain is before this birthday height. As a result, we won't always have the full 10k block re org safety horizon on disk, but will tend to this level after we begin to sync forward. |
||
---|---|---|
.. | ||
internal/txsizes | ||
txauthor | ||
txrules | ||
chainntfns.go | ||
chainntfns_test.go | ||
common.go | ||
createtx.go | ||
createtx_test.go | ||
disksync.go | ||
doc.go | ||
loader.go | ||
log.go | ||
mock.go | ||
multisig.go | ||
notifications.go | ||
README.md | ||
recovery.go | ||
recovery_test.go | ||
rescan.go | ||
unstable.go | ||
utxos.go | ||
wallet.go | ||
wallet_test.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.