ae31984630
In this commit, we address a slight regression within the wallet that was introduced in a previous commit. When attempting to send coins on-chain, we would never ask the chain backend to notify us of the transaction upon confirmation. This, along with the rebroadcast of unconfirmed transactions logic, would result in the wallet becoming out of sync with the chain. Below is an example of how this could have happened: 1. Send funds on-chain. 2. Wallet doesn't ask to be notified of the confirmation. 3. Since the wallet is not notified of the confirmation, the transaction remains in the unconfirmed bucket, even though it might have already confirmed on-chain. 4. Restart and trigger the rebroadcast of unconfirmed transactions. 5. The unconfirmed transaction is removed from the unconfirmed bucket due to it already existing on-chain, without it being moved to the confirmed bucket. Moving to the confirmed bucket would require the block at which it confirmed, which we don't have at this point. |
||
---|---|---|
.. | ||
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.