lbcwallet/wtxmgr
Olaoluwa Osuntokun 50acc9cdf5 wtxmgr: add new method to allow callers to remove conflicted unmined txns
In this commit, we add a new method to the Store object that allows
callers to *manually* remove any conflicting transactions. At times,
it’s the case that while we were offline another transaction was
broadcast that double spends our own, or with the existence of RBF,
another replacement transaction was generated. In this case, when we
come back online, the tx will be rejected. Currently, we have no way of
removing such transaction sot avoid the retransmit-then-reject-dance.
This commit fixes that by adding RemoveUnminedTx.
2018-05-23 19:38:56 -07:00
..
db.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
doc.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
error.go Improve wallet atomicity. 2018-05-23 19:38:56 -07:00
example_test.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
kahnsort.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
log.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
query.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
query_test.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
README.md multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
tx.go wtxmgr: add new method to allow callers to remove conflicted unmined txns 2018-05-23 19:38:56 -07:00
tx_test.go wtxmgr: add new method to allow callers to remove conflicted unmined txns 2018-05-23 19:38:56 -07:00
unconfirmed.go multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00

wtxmgr

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

Package wtxmgr provides storage and spend tracking of wallet transactions and their relevant input and outputs.

Feature overview

  • Storage for relevant wallet transactions
  • Ability to mark outputs as controlled by wallet
  • Unspent transaction output index
  • Balance tracking
  • Automatic spend tracking for transaction inserts and removals
  • Double spend detection and correction after blockchain reorgs
  • Scalable design:
    • Utilizes similar prefixes to allow cursor iteration over relevant transaction inputs and outputs
    • Programmatically detectable errors, including encapsulation of errors from packages it relies on
    • Operates under its own walletdb namespace

Documentation

[GoDoc] (http://godoc.org/github.com/roasbeef/btcwallet/wtxmgr)

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/roasbeef/btcwallet/wtxmgr

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/roasbeef/btcwallet/wtxmgr

Installation

$ go get github.com/roasbeef/btcwallet/wtxmgr

Package wtxmgr is licensed under the copyfree ISC License.