lbcwallet/wallet
Oliver Gugger 98e779a102
wallet: use constant input source for change calculation
To fix a bug where specifying multiple UTXOs that are by themselves
large enough to satisfy the output amount would lead to the rest of them
being added to fees, we need to provide the transaction author with a
constant list of UTXOs. If we didn't, the author would only consider one
input and calculate the change based on that alone. But since we'd add
all inputs to the PSBT, the rest of the amounts would go to fees.
2020-10-01 15:19:13 +02:00
..
txauthor wallet/txauthor: rename relayFeePerKb to feeRatePerKb 2020-08-13 16:57:32 -07:00
txrules wallet/txrules: create new wallet/txrules module 2019-09-05 17:24:09 -07:00
txsizes wallet/txsizes: create new txsizes package+module, remove internal version 2019-09-05 17:18:14 -07:00
chainntfns.go wallet: improve error logging for unsuccessful notification handling 2019-06-13 18:09:05 -07:00
chainntfns_test.go wallet: locate birthday block without scanning chain from genesis 2019-06-13 18:09:01 -07:00
common.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
createtx.go wallet: extract addrMgrWithChangeSource 2020-08-27 21:14:56 +02:00
createtx_test.go wallet: extract addUtxo in create TX test 2020-08-27 21:14:55 +02: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
example_test.go wallet/test: extract testWallet generation into separate function 2020-05-11 15:18:38 +02:00
loader.go waddrmgr: create watch-only address managers and accounts 2020-04-24 17:44:21 -07:00
log.go wtxmgr+wallet: add wtxmgr sublogger 2018-11-14 18:09:10 -08:00
mock.go chain: add IsCurrent method to chain.Interface 2019-06-13 18:08:59 -07:00
multisig.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
notifications.go wallet: add transaction label to transaction summary 2020-05-11 15:18:34 +02:00
psbt.go wallet: use constant input source for change calculation 2020-10-01 15:19:13 +02:00
psbt_test.go wallet: use constant input source for change calculation 2020-10-01 15:19:13 +02: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: make wallet initial sync synchronous 2019-06-13 18:08:58 -07:00
signer.go wallet: add ComputeInputScript 2020-08-27 21:14:59 +02:00
signer_test.go wallet: add ComputeInputScript 2020-08-27 21:14:59 +02:00
unstable.go multi: switch import paths back to upstream 2018-05-23 19:38:56 -07:00
utxos.go wallet: add FetchInputInfo 2020-08-27 21:14:57 +02:00
utxos_test.go wallet: add FetchInputInfo 2020-08-27 21:14:57 +02:00
wallet.go wallet: add mutex for locked outpoints 2020-08-13 20:33:31 +02:00
wallet_test.go wallet: add label transaction function 2020-05-11 15:19:42 +02:00
watchingonly_test.go waddrmgr: create watch-only address managers and accounts 2020-04-24 17:44:21 -07: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.