lbcwallet/wallet
Wilmer Paulino 7a2b5cef76
wallet/wallet: remove invalid transactions when broadcast fails
In this commit, we rework how publishTransaction works in order to
correctly handle removing invalid transactions from the wallet's
unconfirmed transaction store. This is crucial as otherwise, invalid
transactions can remain within the wallet and be used for further
transactions, causing a chain of inaccurate transactions.

publishTransaction will now only return an error if the transaction
fails to be broadcast and it has not been previously seen in the
mempool/chain. This is intended in order to provide an easier API to
callers. Any other errors when broadcasting the transaction will cause
it to be removed from the wallet's unconfirmed transaction store to
ensure it maintains an accurate view of the chain.
2019-02-20 14:50:27 -08:00
..
internal/txsizes multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
txauthor multi: update due to latest API changes 2018-05-23 19:38:56 -07:00
txrules multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
chainntfns.go wallet/chainntfns: make birthdaySanityCheck return ErrBirthdayBlockNotSet 2018-11-20 13:00:45 -08:00
chainntfns_test.go wallet/chainntfns: make birthdaySanityCheck return ErrBirthdayBlockNotSet 2018-11-20 13:00:45 -08:00
common.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
createtx.go wallet: request notification of tx confirmation that pays to relevant addr 2018-11-14 18:06:26 -08:00
disksync.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
doc.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
loader.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
log.go wtxmgr+wallet: add wtxmgr sublogger 2018-11-14 18:09:10 -08:00
multisig.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
notifications.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
README.md multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
recovery.go wallet: update HD recovery logic to map outpoints to addresses 2018-07-16 19:47:17 -07:00
recovery_test.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
rescan.go wallet/rescan: add rescanWithTarget helper 2018-08-30 19:40:06 -07:00
unstable.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
utxos.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
wallet.go wallet/wallet: remove invalid transactions when broadcast fails 2019-02-20 14:50:27 -08:00

wallet

[Build Status] (https://travis-ci.org/btcsuite/btcwallet)

Feature Overview

TODO: Flesh out this section

Documentation

[GoDoc] (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.