From 3dc7a8529c4019ba10e1c0e9427a3d4d9ebcc958 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 5 Jun 2017 17:54:35 -0700 Subject: [PATCH] multi: switch all imports to roasbeef's forks --- README.md | 20 +- btcwallet.go | 8 +- chain/interface.go | 10 +- chain/neutrino.go | 12 +- chain/rpc.go | 2 +- cmd/dropwtxmgr/main.go | 6 +- config.go | 10 +- docs/README.md | 2 +- docs/force_rescans.md | 2 +- internal/cfgutil/amount.go | 2 +- internal/helpers/helpers.go | 4 +- internal/prompt/prompt.go | 4 +- internal/rpchelp/genrpcserverhelp.go | 4 +- internal/rpchelp/methods.go | 2 +- internal/zero/benchmark_test.go | 2 +- internal/zero/zero_test.go | 2 +- netparams/params.go | 2 +- params.go | 2 +- rpc/documentation/clientusage.md | 4 +- rpc/legacyrpc/errors.go | 2 +- rpc/legacyrpc/methods.go | 26 +-- rpc/legacyrpc/rpchelp_test.go | 4 +- rpc/legacyrpc/server.go | 6 +- rpc/rpcserver/server.go | 4 +- rpcserver.go | 8 +- snacl/snacl.go | 2 +- votingpool/README.md | 12 +- votingpool/common_test.go | 4 +- votingpool/db.go | 10 +- votingpool/db_wb_test.go | 2 +- votingpool/error_test.go | 2 +- votingpool/example_test.go | 16 +- votingpool/factory_test.go | 18 +- votingpool/input_selection.go | 10 +- votingpool/input_selection_wb_test.go | 10 +- votingpool/internal_test.go | 8 +- votingpool/pool.go | 12 +- votingpool/pool_test.go | 10 +- votingpool/pool_wb_test.go | 4 +- votingpool/test_coverage.txt | 280 +++++++++++++------------- votingpool/withdrawal.go | 12 +- votingpool/withdrawal_test.go | 6 +- votingpool/withdrawal_wb_test.go | 16 +- waddrmgr/README.md | 14 +- waddrmgr/address.go | 12 +- waddrmgr/common_test.go | 8 +- waddrmgr/db.go | 8 +- waddrmgr/error.go | 2 +- waddrmgr/error_test.go | 2 +- waddrmgr/internal_test.go | 2 +- waddrmgr/manager.go | 16 +- waddrmgr/manager_test.go | 10 +- waddrmgr/sync.go | 4 +- wallet/README.md | 14 +- wallet/chainntfns.go | 10 +- wallet/common.go | 6 +- wallet/createtx.go | 16 +- wallet/internal/txsizes/size.go | 4 +- wallet/internal/txsizes/size_test.go | 4 +- wallet/loader.go | 8 +- wallet/multisig.go | 8 +- wallet/notifications.go | 14 +- wallet/rescan.go | 12 +- wallet/txauthor/author.go | 14 +- wallet/txauthor/author_test.go | 10 +- wallet/txrules/rules.go | 6 +- wallet/unstable.go | 6 +- wallet/utxos.go | 6 +- walletdb/README.md | 16 +- walletdb/bdb/README.md | 12 +- walletdb/bdb/db.go | 2 +- walletdb/bdb/driver.go | 2 +- walletdb/bdb/driver_test.go | 4 +- walletdb/bdb/interface_test.go | 2 +- walletdb/db_test.go | 4 +- walletdb/example_test.go | 12 +- walletdb/walletdbtest/interface.go | 2 +- walletsetup.go | 20 +- wtxmgr/README.md | 14 +- wtxmgr/db.go | 8 +- wtxmgr/example_test.go | 10 +- wtxmgr/kahnsort.go | 2 +- wtxmgr/query.go | 6 +- wtxmgr/query_test.go | 10 +- wtxmgr/tx.go | 12 +- wtxmgr/tx_test.go | 14 +- wtxmgr/unconfirmed.go | 6 +- 87 files changed, 479 insertions(+), 479 deletions(-) diff --git a/README.md b/README.md index 8a68448..83f5c33 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ btcwallet ========= -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)](https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)](https://travis-ci.org/roasbeef/btcwallet) [![Build status](https://ci.appveyor.com/api/projects/status/88nxvckdj8upqr36/branch/master?svg=true)](https://ci.appveyor.com/project/jrick/btcwallet/branch/master) btcwallet is a daemon handling bitcoin wallet functionality for a @@ -30,7 +30,7 @@ encryption will extend to transactions as well. btcwallet is not an SPV client and requires connecting to a local or remote btcd instance for asynchronous blockchain queries and notifications over websockets. Full btcd installation instructions -can be found [here](https://github.com/btcsuite/btcd). An alternative +can be found [here](https://github.com/roasbeef/btcd). An alternative SPV mode that is compatible with btcd and Bitcoin Core is planned for a future release. @@ -60,9 +60,9 @@ Wallet clients can use one of two RPC servers: Install the latest MSIs available here: -https://github.com/btcsuite/btcd/releases +https://github.com/roasbeef/btcd/releases -https://github.com/btcsuite/btcwallet/releases +https://github.com/roasbeef/btcwallet/releases ### Windows/Linux/BSD/POSIX - Build from source @@ -96,8 +96,8 @@ For a first time installation, the project and dependency sources can be obtained manually with `git` and `glide` (create directories as needed): ``` -git clone https://github.com/btcsuite/btcwallet $GOPATH/src/github.com/btcsuite/btcwallet -cd $GOPATH/src/github.com/btcsuite/btcwallet +git clone https://github.com/roasbeef/btcwallet $GOPATH/src/github.com/roasbeef/btcwallet +cd $GOPATH/src/github.com/roasbeef/btcwallet glide install ``` @@ -105,7 +105,7 @@ To update an existing source tree, pull the latest changes and install the matching dependencies: ``` -cd $GOPATH/src/github.com/btcsuite/btcwallet +cd $GOPATH/src/github.com/roasbeef/btcwallet git pull glide install ``` @@ -182,15 +182,15 @@ PS> $editor $env:LOCALAPPDATA\Btcwallet\btcwallet.conf Linux/BSD/POSIX (Installed from source): ```bash -$ cp $GOPATH/src/github.com/btcsuite/btcd/sample-btcd.conf ~/.btcd/btcd.conf -$ cp $GOPATH/src/github.com/btcsuite/btcwallet/sample-btcwallet.conf ~/.btcwallet/btcwallet.conf +$ cp $GOPATH/src/github.com/roasbeef/btcd/sample-btcd.conf ~/.btcd/btcd.conf +$ cp $GOPATH/src/github.com/roasbeef/btcwallet/sample-btcwallet.conf ~/.btcwallet/btcwallet.conf $ $EDITOR ~/.btcd/btcd.conf $ $EDITOR ~/.btcwallet/btcwallet.conf ``` ## Issue Tracker -The [integrated github issue tracker](https://github.com/btcsuite/btcwallet/issues) +The [integrated github issue tracker](https://github.com/roasbeef/btcwallet/issues) is used for this project. ## GPG Verification Key diff --git a/btcwallet.go b/btcwallet.go index 906ff8c..9f8ed1a 100644 --- a/btcwallet.go +++ b/btcwallet.go @@ -14,10 +14,10 @@ import ( "runtime" "sync" - "github.com/btcsuite/btcwallet/chain" - "github.com/btcsuite/btcwallet/rpc/legacyrpc" - "github.com/btcsuite/btcwallet/wallet" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/chain" + "github.com/roasbeef/btcwallet/rpc/legacyrpc" + "github.com/roasbeef/btcwallet/wallet" + "github.com/roasbeef/btcwallet/walletdb" "github.com/lightninglabs/neutrino" ) diff --git a/chain/interface.go b/chain/interface.go index a84487f..1182405 100644 --- a/chain/interface.go +++ b/chain/interface.go @@ -3,11 +3,11 @@ package chain import ( "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/wtxmgr" ) // Interface allows more than one backing blockchain source, such as a diff --git a/chain/neutrino.go b/chain/neutrino.go index 816366d..e0db34f 100644 --- a/chain/neutrino.go +++ b/chain/neutrino.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcrpcclient" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcrpcclient" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/wtxmgr" "github.com/lightninglabs/neutrino" ) diff --git a/chain/rpc.go b/chain/rpc.go index 4aae8d0..3e6bedd 100644 --- a/chain/rpc.go +++ b/chain/rpc.go @@ -331,7 +331,7 @@ out: // TODO: A minute timeout is used to prevent the handler loop from // blocking here forever, but this is much larger than it needs to // be due to dcrd processing websocket requests synchronously (see - // https://github.com/btcsuite/btcd/issues/504). Decrease this to + // https://github.com/roasbeef/btcd/issues/504). Decrease this to // something saner like 3s when the above issue is fixed. type sessionResult struct { err error diff --git a/cmd/dropwtxmgr/main.go b/cmd/dropwtxmgr/main.go index 990b5c5..52b4f5e 100644 --- a/cmd/dropwtxmgr/main.go +++ b/cmd/dropwtxmgr/main.go @@ -10,9 +10,9 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" "github.com/jessevdk/go-flags" ) diff --git a/config.go b/config.go index 2b9e7ea..9c4661d 100644 --- a/config.go +++ b/config.go @@ -15,11 +15,11 @@ import ( "strings" "time" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/internal/cfgutil" - "github.com/btcsuite/btcwallet/internal/legacy/keystore" - "github.com/btcsuite/btcwallet/netparams" - "github.com/btcsuite/btcwallet/wallet" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/internal/cfgutil" + "github.com/roasbeef/btcwallet/internal/legacy/keystore" + "github.com/roasbeef/btcwallet/netparams" + "github.com/roasbeef/btcwallet/wallet" flags "github.com/jessevdk/go-flags" "github.com/lightninglabs/neutrino" ) diff --git a/docs/README.md b/docs/README.md index eb89217..9243163 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,3 @@ ### Guides -[Rebuilding all transaction history with forced rescans](https://github.com/btcsuite/btcwallet/tree/master/docs/force_rescans.md) +[Rebuilding all transaction history with forced rescans](https://github.com/roasbeef/btcwallet/tree/master/docs/force_rescans.md) diff --git a/docs/force_rescans.md b/docs/force_rescans.md index a218ff7..02bbc2b 100644 --- a/docs/force_rescans.md +++ b/docs/force_rescans.md @@ -40,7 +40,7 @@ drop the wallet transaction manager (wtxmgr) history from a wallet database. The tool may already be installed in your PATH, but if not, installing it is easy: ``` -$ cd $GOPATH/src/github.com/btcsuite/btcwallet/cmd/dropwtxmgr +$ cd $GOPATH/src/github.com/roasbeef/btcwallet/cmd/dropwtxmgr $ go get ``` diff --git a/internal/cfgutil/amount.go b/internal/cfgutil/amount.go index 5fa9c0c..18b5282 100644 --- a/internal/cfgutil/amount.go +++ b/internal/cfgutil/amount.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/btcsuite/btcutil" + "github.com/roasbeef/btcutil" ) // AmountFlag embeds a btcutil.Amount and implements the flags.Marshaler and diff --git a/internal/helpers/helpers.go b/internal/helpers/helpers.go index 9bf3e42..e8a43b3 100644 --- a/internal/helpers/helpers.go +++ b/internal/helpers/helpers.go @@ -7,8 +7,8 @@ package helpers import ( - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" ) // SumOutputValues sums up the list of TxOuts and returns an Amount. diff --git a/internal/prompt/prompt.go b/internal/prompt/prompt.go index 817f912..96f160c 100644 --- a/internal/prompt/prompt.go +++ b/internal/prompt/prompt.go @@ -12,8 +12,8 @@ import ( "os" "strings" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/internal/legacy/keystore" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/internal/legacy/keystore" "github.com/btcsuite/golangcrypto/ssh/terminal" ) diff --git a/internal/rpchelp/genrpcserverhelp.go b/internal/rpchelp/genrpcserverhelp.go index e1ef856..07db190 100644 --- a/internal/rpchelp/genrpcserverhelp.go +++ b/internal/rpchelp/genrpcserverhelp.go @@ -12,8 +12,8 @@ import ( "os" "strings" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcwallet/internal/rpchelp" + "github.com/roasbeef/btcd/btcjson" + "github.com/roasbeef/btcwallet/internal/rpchelp" ) var outputFile = func() *os.File { diff --git a/internal/rpchelp/methods.go b/internal/rpchelp/methods.go index cdc4fad..04e42be 100644 --- a/internal/rpchelp/methods.go +++ b/internal/rpchelp/methods.go @@ -6,7 +6,7 @@ package rpchelp -import "github.com/btcsuite/btcd/btcjson" +import "github.com/roasbeef/btcd/btcjson" // Common return types. var ( diff --git a/internal/zero/benchmark_test.go b/internal/zero/benchmark_test.go index ade0a90..becfe21 100644 --- a/internal/zero/benchmark_test.go +++ b/internal/zero/benchmark_test.go @@ -7,7 +7,7 @@ package zero_test import ( "testing" - . "github.com/btcsuite/btcwallet/internal/zero" + . "github.com/roasbeef/btcwallet/internal/zero" ) var ( diff --git a/internal/zero/zero_test.go b/internal/zero/zero_test.go index 996e838..e8fb0be 100644 --- a/internal/zero/zero_test.go +++ b/internal/zero/zero_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - . "github.com/btcsuite/btcwallet/internal/zero" + . "github.com/roasbeef/btcwallet/internal/zero" ) func makeOneBytes(n int) []byte { diff --git a/netparams/params.go b/netparams/params.go index c15047e..77bd717 100644 --- a/netparams/params.go +++ b/netparams/params.go @@ -4,7 +4,7 @@ package netparams -import "github.com/btcsuite/btcd/chaincfg" +import "github.com/roasbeef/btcd/chaincfg" // Params is used to group parameters for various networks such as the main // network and test networks. diff --git a/params.go b/params.go index b668762..7cb2da1 100644 --- a/params.go +++ b/params.go @@ -4,6 +4,6 @@ package main -import "github.com/btcsuite/btcwallet/netparams" +import "github.com/roasbeef/btcwallet/netparams" var activeNet = &netparams.MainNetParams diff --git a/rpc/documentation/clientusage.md b/rpc/documentation/clientusage.md index 3632311..1ff4d49 100644 --- a/rpc/documentation/clientusage.md +++ b/rpc/documentation/clientusage.md @@ -52,7 +52,7 @@ import ( "fmt" "path/filepath" - pb "github.com/btcsuite/btcwallet/rpc/walletrpc" + pb "github.com/roasbeef/btcwallet/rpc/walletrpc" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/credentials" @@ -394,7 +394,7 @@ Full instructions for this procedure can be found Generate Python stubs from the `.proto`: ```bash -$ protoc -I /path/to/btcsuite/btcwallet/rpc --python_out=. --grpc_out=. \ +$ protoc -I /path/to/roasbeef/btcwallet/rpc --python_out=. --grpc_out=. \ --plugin=protoc-gen-grpc=$(which grpc_python_plugin) \ /path/to/btcwallet/rpc/api.proto ``` diff --git a/rpc/legacyrpc/errors.go b/rpc/legacyrpc/errors.go index 2116572..4f9b0d3 100644 --- a/rpc/legacyrpc/errors.go +++ b/rpc/legacyrpc/errors.go @@ -7,7 +7,7 @@ package legacyrpc import ( "errors" - "github.com/btcsuite/btcd/btcjson" + "github.com/roasbeef/btcd/btcjson" ) // TODO(jrick): There are several error paths which 'replace' various errors diff --git a/rpc/legacyrpc/methods.go b/rpc/legacyrpc/methods.go index 5b3d92a..0e4956b 100644 --- a/rpc/legacyrpc/methods.go +++ b/rpc/legacyrpc/methods.go @@ -15,19 +15,19 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcrpcclient" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/chain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wallet" - "github.com/btcsuite/btcwallet/wallet/txrules" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcd/btcjson" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcrpcclient" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/chain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/wallet" + "github.com/roasbeef/btcwallet/wallet/txrules" + "github.com/roasbeef/btcwallet/wtxmgr" ) // confirmed checks whether a transaction at height txHeight has met minconf diff --git a/rpc/legacyrpc/rpchelp_test.go b/rpc/legacyrpc/rpchelp_test.go index 177ccb9..707d1f0 100644 --- a/rpc/legacyrpc/rpchelp_test.go +++ b/rpc/legacyrpc/rpchelp_test.go @@ -18,8 +18,8 @@ import ( "strings" "testing" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcwallet/internal/rpchelp" + "github.com/roasbeef/btcd/btcjson" + "github.com/roasbeef/btcwallet/internal/rpchelp" ) func serverMethods() map[string]struct{} { diff --git a/rpc/legacyrpc/server.go b/rpc/legacyrpc/server.go index 60ce593..c2975df 100644 --- a/rpc/legacyrpc/server.go +++ b/rpc/legacyrpc/server.go @@ -19,9 +19,9 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcwallet/chain" - "github.com/btcsuite/btcwallet/wallet" + "github.com/roasbeef/btcd/btcjson" + "github.com/roasbeef/btcwallet/chain" + "github.com/roasbeef/btcwallet/wallet" "github.com/btcsuite/websocket" ) diff --git a/rpc/rpcserver/server.go b/rpc/rpcserver/server.go index e8ad762..0836328 100644 --- a/rpc/rpcserver/server.go +++ b/rpc/rpcserver/server.go @@ -8,11 +8,11 @@ // Full documentation of the API implemented by this package is maintained in a // language-agnostic document: // -// https://github.com/btcsuite/btcwallet/blob/master/rpc/documentation/api.md +// https://github.com/roasbeef/btcwallet/blob/master/rpc/documentation/api.md // // Any API changes must be performed according to the steps listed here: // -// https://github.com/btcsuite/btcwallet/blob/master/rpc/documentation/serverchanges.md +// https://github.com/roasbeef/btcwallet/blob/master/rpc/documentation/serverchanges.md package rpcserver import ( diff --git a/rpcserver.go b/rpcserver.go index 5169b39..26b96bd 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -16,10 +16,10 @@ import ( "strings" "time" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/rpc/legacyrpc" - "github.com/btcsuite/btcwallet/rpc/rpcserver" - "github.com/btcsuite/btcwallet/wallet" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/rpc/legacyrpc" + "github.com/roasbeef/btcwallet/rpc/rpcserver" + "github.com/roasbeef/btcwallet/wallet" "google.golang.org/grpc" "google.golang.org/grpc/credentials" ) diff --git a/snacl/snacl.go b/snacl/snacl.go index e893759..731bcf0 100644 --- a/snacl/snacl.go +++ b/snacl/snacl.go @@ -13,7 +13,7 @@ import ( "io" "runtime/debug" - "github.com/btcsuite/btcwallet/internal/zero" + "github.com/roasbeef/btcwallet/internal/zero" "github.com/btcsuite/golangcrypto/nacl/secretbox" "github.com/btcsuite/golangcrypto/scrypt" ) diff --git a/votingpool/README.md b/votingpool/README.md index 75a51af..34903bd 100644 --- a/votingpool/README.md +++ b/votingpool/README.md @@ -1,8 +1,8 @@ votingpool ======== -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) Package votingpool provides voting pool functionality for btcwallet as described here: @@ -25,16 +25,16 @@ Note that this is still a work in progress. ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/votingpool?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/votingpool) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/votingpool?status.png)] +(http://godoc.org/github.com/roasbeef/btcwallet/votingpool) 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/votingpool +http://godoc.org/github.com/roasbeef/btcwallet/votingpool 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/votingpool +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/votingpool Package votingpool is licensed under the [copyfree](http://copyfree.org) ISC License. diff --git a/votingpool/common_test.go b/votingpool/common_test.go index b4059a9..8b6bebd 100644 --- a/votingpool/common_test.go +++ b/votingpool/common_test.go @@ -11,8 +11,8 @@ import ( "testing" "github.com/btcsuite/btclog" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) func init() { diff --git a/votingpool/db.go b/votingpool/db.go index 311a5f2..acb3320 100644 --- a/votingpool/db.go +++ b/votingpool/db.go @@ -10,11 +10,11 @@ import ( "encoding/gob" "fmt" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/snacl" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/snacl" + "github.com/roasbeef/btcwallet/walletdb" ) // These constants define the serialized length for a given encrypted extended diff --git a/votingpool/db_wb_test.go b/votingpool/db_wb_test.go index 10d2d22..7521a7b 100644 --- a/votingpool/db_wb_test.go +++ b/votingpool/db_wb_test.go @@ -9,7 +9,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/walletdb" ) func TestPutUsedAddrHash(t *testing.T) { diff --git a/votingpool/error_test.go b/votingpool/error_test.go index 0ada043..56af709 100644 --- a/votingpool/error_test.go +++ b/votingpool/error_test.go @@ -7,7 +7,7 @@ package votingpool_test import ( "testing" - vp "github.com/btcsuite/btcwallet/votingpool" + vp "github.com/roasbeef/btcwallet/votingpool" ) // TestErrorCodeStringer tests that all error codes has a text diff --git a/votingpool/example_test.go b/votingpool/example_test.go index b1d8ef3..fb778f7 100644 --- a/votingpool/example_test.go +++ b/votingpool/example_test.go @@ -23,14 +23,14 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/votingpool" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/votingpool" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) var ( diff --git a/votingpool/factory_test.go b/votingpool/factory_test.go index ca00df7..d53d19f 100644 --- a/votingpool/factory_test.go +++ b/votingpool/factory_test.go @@ -27,15 +27,15 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) var ( diff --git a/votingpool/input_selection.go b/votingpool/input_selection.go index 39cbe34..876371f 100644 --- a/votingpool/input_selection.go +++ b/votingpool/input_selection.go @@ -21,11 +21,11 @@ import ( "fmt" "sort" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) const eligibleInputMinConfirmations = 100 diff --git a/votingpool/input_selection_wb_test.go b/votingpool/input_selection_wb_test.go index 8136968..2d6a9a9 100644 --- a/votingpool/input_selection_wb_test.go +++ b/votingpool/input_selection_wb_test.go @@ -10,11 +10,11 @@ import ( "sort" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) var ( diff --git a/votingpool/internal_test.go b/votingpool/internal_test.go index 36054d4..ad8b14e 100644 --- a/votingpool/internal_test.go +++ b/votingpool/internal_test.go @@ -5,10 +5,10 @@ package votingpool import ( - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) var TstLastErr = lastErr diff --git a/votingpool/pool.go b/votingpool/pool.go index 6f2687f..d8d2354 100644 --- a/votingpool/pool.go +++ b/votingpool/pool.go @@ -8,12 +8,12 @@ import ( "fmt" "sort" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/internal/zero" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/internal/zero" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/votingpool/pool_test.go b/votingpool/pool_test.go index 4269ea5..2c69502 100644 --- a/votingpool/pool_test.go +++ b/votingpool/pool_test.go @@ -11,11 +11,11 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcutil/hdkeychain" - vp "github.com/btcsuite/btcwallet/votingpool" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcutil/hdkeychain" + vp "github.com/roasbeef/btcwallet/votingpool" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) func TestLoadPoolAndDepositScript(t *testing.T) { diff --git a/votingpool/pool_wb_test.go b/votingpool/pool_wb_test.go index 1dd64a2..9429500 100644 --- a/votingpool/pool_wb_test.go +++ b/votingpool/pool_wb_test.go @@ -9,8 +9,8 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/waddrmgr" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/waddrmgr" ) func TestPoolEnsureUsedAddr(t *testing.T) { diff --git a/votingpool/test_coverage.txt b/votingpool/test_coverage.txt index 0d02016..45d906a 100644 --- a/votingpool/test_coverage.txt +++ b/votingpool/test_coverage.txt @@ -1,142 +1,142 @@ -github.com/btcsuite/btcwallet/votingpool/db.go serializeSeriesRow 100.00% (31/31) -github.com/btcsuite/btcwallet/votingpool/pool.go branchOrder 100.00% (19/19) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.splitLastOutput 100.00% (16/16) -github.com/btcsuite/btcwallet/votingpool/pool.go convertAndValidatePubKeys 100.00% (16/16) -github.com/btcsuite/btcwallet/votingpool/input_selection.go byAddress.Less 100.00% (12/12) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.maybeDropRequests 100.00% (12/12) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.rollBackLastOutput 100.00% (10/10) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go calculateSize 100.00% (10/10) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.decryptExtendedKey 100.00% (10/10) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go OutputRequest.outBailmentIDHash 100.00% (8/8) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.ReplaceSeries 100.00% (8/8) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.toMsgTx 100.00% (8/8) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.CreateSeries 100.00% (8/8) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.addChange 100.00% (7/7) -github.com/btcsuite/btcwallet/votingpool/db.go putPool 100.00% (5/5) -github.com/btcsuite/btcwallet/votingpool/pool.go Create 100.00% (5/5) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go newWithdrawalTx 100.00% (5/5) -github.com/btcsuite/btcwallet/votingpool/db.go getUsedAddrHash 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/pool.go CanonicalKeyOrder 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/pool.go SeriesData.IsEmpowered 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.DepositScriptAddress 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go getRedeemScript 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go newWithdrawal 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/db.go @102:3 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.removeInput 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.removeOutput 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.GetSeries 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/pool.go @119:3 100.00% (4/4) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.outputTotal 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.inputTotal 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.highestUsedIndexFor 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.popRequest 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/pool.go @458:26 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/db.go uint32ToBytes 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/pool.go @811:3 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.popInput 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.updateStatusFor 100.00% (3/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.addInput 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.addOutput 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/db.go putSeries 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go Ntxid 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.addressFor 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/pool.go zero 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/pool.go @780:3 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/db.go existsPool 100.00% (2/2) -github.com/btcsuite/btcwallet/votingpool/db.go getUsedAddrBucketID 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/db.go bytesToUint32 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/error.go newError 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go newCredit 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go credit.TxSha 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go credit.OutputIndex 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go credit.Address 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go byAddress.Len 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go byAddress.Swap 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go Pool.isCharterOutput 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/log.go init 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/log.go DisableLog 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/log.go UseLogger 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go @105:3 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go newPool 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.Manager 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go @250:27 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go @761:3 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.Addr 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.AddrIdentifier 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.RedeemScript 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.Series 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.SeriesID 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.Branch 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.Index 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byAmount.Len 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byAmount.Less 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byAmount.Swap 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byOutBailmentID.Len 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byOutBailmentID.Swap 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go byOutBailmentID.Less 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalStatus.Outputs 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go OutputRequest.String 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go OutputRequest.outBailmentID 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalOutput.addOutpoint 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Status 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Address 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Outpoints 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go OutBailmentOutpoint.Amount 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTxOut.pkScript 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go @237:20 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go @240:16 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTx.hasChange 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.pushRequest 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.pushInput 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go @246:21 100.00% (1/1) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.EmpowerSeries 96.30% (26/27) -github.com/btcsuite/btcwallet/votingpool/db.go deserializeSeriesRow 94.59% (35/37) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.fulfillNextRequest 94.44% (17/18) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.putSeries 93.75% (15/16) -github.com/btcsuite/btcwallet/votingpool/pool.go validateAndDecryptKeys 92.31% (24/26) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go getRawSigs 91.43% (32/35) -github.com/btcsuite/btcwallet/votingpool/input_selection.go nextAddr 90.48% (19/21) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.fulfillRequests 87.50% (14/16) -github.com/btcsuite/btcwallet/votingpool/db.go getMaxUsedIdx 87.50% (7/8) -github.com/btcsuite/btcwallet/votingpool/input_selection.go Pool.getEligibleInputs 85.71% (30/35) -github.com/btcsuite/btcwallet/votingpool/input_selection.go Pool.isCreditEligible 85.71% (6/7) -github.com/btcsuite/btcwallet/votingpool/pool.go Load 85.71% (6/7) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go signMultiSigUTXO 85.19% (23/27) -github.com/btcsuite/btcwallet/votingpool/input_selection.go groupCreditsByAddr 83.33% (10/12) -github.com/btcsuite/btcwallet/votingpool/db.go loadAllSeries 83.33% (5/6) -github.com/btcsuite/btcwallet/votingpool/input_selection.go Pool.highestUsedSeriesIndex 81.82% (9/11) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.handleOversizeTx 80.00% (12/15) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.LoadAllSeries 80.00% (8/10) -github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndCreateSeries 80.00% (8/10) -github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndEmpowerSeries 80.00% (4/5) -github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndReplaceSeries 80.00% (4/5) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.finalizeCurrentTx 79.31% (23/29) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.ChangeAddress 76.92% (10/13) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.WithdrawalAddress 76.92% (10/13) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.getUsedAddr 76.47% (13/17) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go Pool.StartWithdrawal 75.00% (12/16) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.ensureUsedAddr 75.00% (9/12) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go validateSigScript 75.00% (6/8) -github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndGetDepositScript 75.00% (6/8) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go getTxOutIndex 75.00% (3/4) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.poolAddress 75.00% (3/4) -github.com/btcsuite/btcwallet/votingpool/db.go putUsedAddrHash 75.00% (3/4) -github.com/btcsuite/btcwallet/votingpool/pool.go SeriesData.getPrivKeyFor 75.00% (3/4) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.DepositScript 73.08% (19/26) -github.com/btcsuite/btcwallet/votingpool/db.go @132:3 71.43% (5/7) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go nextChangeAddr 71.43% (5/7) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go storeTransactions 70.59% (12/17) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.saveSeriesToDisk 70.00% (14/20) -github.com/btcsuite/btcwallet/votingpool/pool.go Pool.addUsedAddr 69.23% (9/13) -github.com/btcsuite/btcwallet/votingpool/error.go ErrorCode.String 66.67% (2/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go SignTx 62.50% (5/8) -github.com/btcsuite/btcwallet/votingpool/db.go putSeriesRow 53.85% (7/13) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go nBytesToSerialize 40.00% (2/5) -github.com/btcsuite/btcwallet/votingpool/error.go Error.Error 0.00% (0/3) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go WithdrawalOutput.String 0.00% (0/1) -github.com/btcsuite/btcwallet/votingpool/input_selection.go credit.String 0.00% (0/1) -github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawalTxOut.String 0.00% (0/1) -github.com/btcsuite/btcwallet/votingpool/pool.go poolAddress.String 0.00% (0/1) -github.com/btcsuite/btcwallet/votingpool ------------------------------- 87.49% (818/935) +github.com/roasbeef/btcwallet/votingpool/db.go serializeSeriesRow 100.00% (31/31) +github.com/roasbeef/btcwallet/votingpool/pool.go branchOrder 100.00% (19/19) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.splitLastOutput 100.00% (16/16) +github.com/roasbeef/btcwallet/votingpool/pool.go convertAndValidatePubKeys 100.00% (16/16) +github.com/roasbeef/btcwallet/votingpool/input_selection.go byAddress.Less 100.00% (12/12) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.maybeDropRequests 100.00% (12/12) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.rollBackLastOutput 100.00% (10/10) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go calculateSize 100.00% (10/10) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.decryptExtendedKey 100.00% (10/10) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go OutputRequest.outBailmentIDHash 100.00% (8/8) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.ReplaceSeries 100.00% (8/8) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.toMsgTx 100.00% (8/8) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.CreateSeries 100.00% (8/8) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.addChange 100.00% (7/7) +github.com/roasbeef/btcwallet/votingpool/db.go putPool 100.00% (5/5) +github.com/roasbeef/btcwallet/votingpool/pool.go Create 100.00% (5/5) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go newWithdrawalTx 100.00% (5/5) +github.com/roasbeef/btcwallet/votingpool/db.go getUsedAddrHash 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/pool.go CanonicalKeyOrder 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/pool.go SeriesData.IsEmpowered 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.DepositScriptAddress 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go getRedeemScript 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go newWithdrawal 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/db.go @102:3 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.removeInput 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.removeOutput 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.GetSeries 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/pool.go @119:3 100.00% (4/4) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.outputTotal 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.inputTotal 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.highestUsedIndexFor 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.popRequest 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/pool.go @458:26 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/db.go uint32ToBytes 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/pool.go @811:3 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.popInput 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.updateStatusFor 100.00% (3/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.addInput 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.addOutput 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/db.go putSeries 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go Ntxid 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.addressFor 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/pool.go zero 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/pool.go @780:3 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/db.go existsPool 100.00% (2/2) +github.com/roasbeef/btcwallet/votingpool/db.go getUsedAddrBucketID 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/db.go bytesToUint32 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/error.go newError 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go newCredit 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go credit.TxSha 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go credit.OutputIndex 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go credit.Address 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go byAddress.Len 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go byAddress.Swap 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go Pool.isCharterOutput 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/log.go init 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/log.go DisableLog 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/log.go UseLogger 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go @105:3 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go newPool 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.Manager 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go @250:27 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go @761:3 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.Addr 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.AddrIdentifier 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.RedeemScript 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.Series 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.SeriesID 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.Branch 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.Index 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byAmount.Len 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byAmount.Less 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byAmount.Swap 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byOutBailmentID.Len 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byOutBailmentID.Swap 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go byOutBailmentID.Less 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalStatus.Outputs 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go OutputRequest.String 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go OutputRequest.outBailmentID 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalOutput.addOutpoint 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Status 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Address 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalOutput.Outpoints 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go OutBailmentOutpoint.Amount 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTxOut.pkScript 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go @237:20 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go @240:16 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.hasChange 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.pushRequest 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.pushInput 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go @246:21 100.00% (1/1) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.EmpowerSeries 96.30% (26/27) +github.com/roasbeef/btcwallet/votingpool/db.go deserializeSeriesRow 94.59% (35/37) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.fulfillNextRequest 94.44% (17/18) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.putSeries 93.75% (15/16) +github.com/roasbeef/btcwallet/votingpool/pool.go validateAndDecryptKeys 92.31% (24/26) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go getRawSigs 91.43% (32/35) +github.com/roasbeef/btcwallet/votingpool/input_selection.go nextAddr 90.48% (19/21) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.fulfillRequests 87.50% (14/16) +github.com/roasbeef/btcwallet/votingpool/db.go getMaxUsedIdx 87.50% (7/8) +github.com/roasbeef/btcwallet/votingpool/input_selection.go Pool.getEligibleInputs 85.71% (30/35) +github.com/roasbeef/btcwallet/votingpool/input_selection.go Pool.isCreditEligible 85.71% (6/7) +github.com/roasbeef/btcwallet/votingpool/pool.go Load 85.71% (6/7) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go signMultiSigUTXO 85.19% (23/27) +github.com/roasbeef/btcwallet/votingpool/input_selection.go groupCreditsByAddr 83.33% (10/12) +github.com/roasbeef/btcwallet/votingpool/db.go loadAllSeries 83.33% (5/6) +github.com/roasbeef/btcwallet/votingpool/input_selection.go Pool.highestUsedSeriesIndex 81.82% (9/11) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.handleOversizeTx 80.00% (12/15) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.LoadAllSeries 80.00% (8/10) +github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndCreateSeries 80.00% (8/10) +github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndEmpowerSeries 80.00% (4/5) +github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndReplaceSeries 80.00% (4/5) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.finalizeCurrentTx 79.31% (23/29) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.ChangeAddress 76.92% (10/13) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.WithdrawalAddress 76.92% (10/13) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.getUsedAddr 76.47% (13/17) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go Pool.StartWithdrawal 75.00% (12/16) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.ensureUsedAddr 75.00% (9/12) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go validateSigScript 75.00% (6/8) +github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndGetDepositScript 75.00% (6/8) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go getTxOutIndex 75.00% (3/4) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.poolAddress 75.00% (3/4) +github.com/roasbeef/btcwallet/votingpool/db.go putUsedAddrHash 75.00% (3/4) +github.com/roasbeef/btcwallet/votingpool/pool.go SeriesData.getPrivKeyFor 75.00% (3/4) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.DepositScript 73.08% (19/26) +github.com/roasbeef/btcwallet/votingpool/db.go @132:3 71.43% (5/7) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go nextChangeAddr 71.43% (5/7) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go storeTransactions 70.59% (12/17) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.saveSeriesToDisk 70.00% (14/20) +github.com/roasbeef/btcwallet/votingpool/pool.go Pool.addUsedAddr 69.23% (9/13) +github.com/roasbeef/btcwallet/votingpool/error.go ErrorCode.String 66.67% (2/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go SignTx 62.50% (5/8) +github.com/roasbeef/btcwallet/votingpool/db.go putSeriesRow 53.85% (7/13) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go nBytesToSerialize 40.00% (2/5) +github.com/roasbeef/btcwallet/votingpool/error.go Error.Error 0.00% (0/3) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go WithdrawalOutput.String 0.00% (0/1) +github.com/roasbeef/btcwallet/votingpool/input_selection.go credit.String 0.00% (0/1) +github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTxOut.String 0.00% (0/1) +github.com/roasbeef/btcwallet/votingpool/pool.go poolAddress.String 0.00% (0/1) +github.com/roasbeef/btcwallet/votingpool ------------------------------- 87.49% (818/935) diff --git a/votingpool/withdrawal.go b/votingpool/withdrawal.go index d1700ef..68d3f3b 100644 --- a/votingpool/withdrawal.go +++ b/votingpool/withdrawal.go @@ -14,12 +14,12 @@ import ( "strconv" "time" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) // Maximum tx size (in bytes). This should be the same as bitcoind's diff --git a/votingpool/withdrawal_test.go b/votingpool/withdrawal_test.go index b3a3b49..1e1933e 100644 --- a/votingpool/withdrawal_test.go +++ b/votingpool/withdrawal_test.go @@ -8,9 +8,9 @@ import ( "bytes" "testing" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - vp "github.com/btcsuite/btcwallet/votingpool" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + vp "github.com/roasbeef/btcwallet/votingpool" ) func TestStartWithdrawal(t *testing.T) { diff --git a/votingpool/withdrawal_wb_test.go b/votingpool/withdrawal_wb_test.go index 53fb7eb..5b24a7c 100644 --- a/votingpool/withdrawal_wb_test.go +++ b/votingpool/withdrawal_wb_test.go @@ -10,14 +10,14 @@ import ( "sort" "testing" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) // TestOutputSplittingNotEnoughInputs checks that an output will get split if we diff --git a/waddrmgr/README.md b/waddrmgr/README.md index 6499c6d..226deb6 100644 --- a/waddrmgr/README.md +++ b/waddrmgr/README.md @@ -1,8 +1,8 @@ waddrmgr ======== -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) Package waddrmgr provides a secure hierarchical deterministic wallet address manager. @@ -41,21 +41,21 @@ report. Package waddrmgr is licensed under the liberal ISC license. ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/waddrmgr?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/waddrmgr) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/waddrmgr?status.png)] +(http://godoc.org/github.com/roasbeef/btcwallet/waddrmgr) 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/waddrmgr +http://godoc.org/github.com/roasbeef/btcwallet/waddrmgr 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/waddrmgr +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/waddrmgr ## Installation ```bash -$ go get github.com/btcsuite/btcwallet/waddrmgr +$ go get github.com/roasbeef/btcwallet/waddrmgr ``` Package waddrmgr is licensed under the [copyfree](http://copyfree.org) ISC diff --git a/waddrmgr/address.go b/waddrmgr/address.go index fd879a6..51442b6 100644 --- a/waddrmgr/address.go +++ b/waddrmgr/address.go @@ -9,12 +9,12 @@ import ( "fmt" "sync" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/internal/zero" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/internal/zero" + "github.com/roasbeef/btcwallet/walletdb" ) // AddressType represents the various address types waddrmgr is currently able diff --git a/waddrmgr/common_test.go b/waddrmgr/common_test.go index 8955344..22d5c71 100644 --- a/waddrmgr/common_test.go +++ b/waddrmgr/common_test.go @@ -11,10 +11,10 @@ import ( "path/filepath" "testing" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) var ( diff --git a/waddrmgr/db.go b/waddrmgr/db.go index 688338d..0859e26 100644 --- a/waddrmgr/db.go +++ b/waddrmgr/db.go @@ -12,10 +12,10 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/waddrmgr/error.go b/waddrmgr/error.go index 524a607..69a7145 100644 --- a/waddrmgr/error.go +++ b/waddrmgr/error.go @@ -8,7 +8,7 @@ import ( "fmt" "strconv" - "github.com/btcsuite/btcutil/hdkeychain" + "github.com/roasbeef/btcutil/hdkeychain" ) var ( diff --git a/waddrmgr/error_test.go b/waddrmgr/error_test.go index 398308b..1bee941 100644 --- a/waddrmgr/error_test.go +++ b/waddrmgr/error_test.go @@ -9,7 +9,7 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/waddrmgr" ) // TestErrorCodeStringer tests the stringized output for the ErrorCode type. diff --git a/waddrmgr/internal_test.go b/waddrmgr/internal_test.go index 15a8c82..2942588 100644 --- a/waddrmgr/internal_test.go +++ b/waddrmgr/internal_test.go @@ -14,7 +14,7 @@ package waddrmgr import ( "errors" - "github.com/btcsuite/btcwallet/snacl" + "github.com/roasbeef/btcwallet/snacl" ) // TstMaxRecentHashes makes the unexported maxRecentHashes constant available diff --git a/waddrmgr/manager.go b/waddrmgr/manager.go index a1563fa..d9178ee 100644 --- a/waddrmgr/manager.go +++ b/waddrmgr/manager.go @@ -10,14 +10,14 @@ import ( "fmt" "sync" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/hdkeychain" - "github.com/btcsuite/btcwallet/internal/zero" - "github.com/btcsuite/btcwallet/snacl" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcutil/hdkeychain" + "github.com/roasbeef/btcwallet/internal/zero" + "github.com/roasbeef/btcwallet/snacl" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/waddrmgr/manager_test.go b/waddrmgr/manager_test.go index 687c7fd..10beb33 100644 --- a/waddrmgr/manager_test.go +++ b/waddrmgr/manager_test.go @@ -11,11 +11,11 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) // newHash converts the passed big-endian hex string into a chainhash.Hash. diff --git a/waddrmgr/sync.go b/waddrmgr/sync.go index 60a313c..0bf46de 100644 --- a/waddrmgr/sync.go +++ b/waddrmgr/sync.go @@ -7,8 +7,8 @@ package waddrmgr import ( "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/wallet/README.md b/wallet/README.md index 196920c..3d481d9 100644 --- a/wallet/README.md +++ b/wallet/README.md @@ -1,8 +1,8 @@ wallet ====== -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) ## Feature Overview @@ -10,21 +10,21 @@ TODO: Flesh out this section ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/wallet?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/wallet) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/wallet?status.png)] +(http://godoc.org/github.com/roasbeef/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 +http://godoc.org/github.com/roasbeef/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 +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/wallet ## Installation ```bash -$ go get github.com/btcsuite/btcwallet/wallet +$ go get github.com/roasbeef/btcwallet/wallet ``` Package wallet is licensed under the [copyfree](http://copyfree.org) ISC diff --git a/wallet/chainntfns.go b/wallet/chainntfns.go index bc0ab30..e9af9dc 100644 --- a/wallet/chainntfns.go +++ b/wallet/chainntfns.go @@ -5,11 +5,11 @@ package wallet import ( - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcwallet/chain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcwallet/chain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) func (w *Wallet) handleChainNotifications() { diff --git a/wallet/common.go b/wallet/common.go index 15a0296..5858b50 100644 --- a/wallet/common.go +++ b/wallet/common.go @@ -8,9 +8,9 @@ package wallet import ( "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" ) // Note: The following common types should never reference the Wallet type. diff --git a/wallet/createtx.go b/wallet/createtx.go index 5f7a38c..4c2b3a5 100644 --- a/wallet/createtx.go +++ b/wallet/createtx.go @@ -9,14 +9,14 @@ import ( "fmt" "sort" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wallet/txauthor" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/wallet/txauthor" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) // byAmount defines the methods needed to satisify sort.Interface to diff --git a/wallet/internal/txsizes/size.go b/wallet/internal/txsizes/size.go index cbf602e..87a2435 100644 --- a/wallet/internal/txsizes/size.go +++ b/wallet/internal/txsizes/size.go @@ -5,9 +5,9 @@ package txsizes import ( - "github.com/btcsuite/btcd/wire" + "github.com/roasbeef/btcd/wire" - h "github.com/btcsuite/btcwallet/internal/helpers" + h "github.com/roasbeef/btcwallet/internal/helpers" ) // Worst case script and input/output size estimates. diff --git a/wallet/internal/txsizes/size_test.go b/wallet/internal/txsizes/size_test.go index 93620be..3891169 100644 --- a/wallet/internal/txsizes/size_test.go +++ b/wallet/internal/txsizes/size_test.go @@ -3,8 +3,8 @@ package txsizes_test import ( "testing" - "github.com/btcsuite/btcd/wire" - . "github.com/btcsuite/btcwallet/wallet/internal/txsizes" + "github.com/roasbeef/btcd/wire" + . "github.com/roasbeef/btcwallet/wallet/internal/txsizes" ) const ( diff --git a/wallet/loader.go b/wallet/loader.go index dc274c1..85015bf 100644 --- a/wallet/loader.go +++ b/wallet/loader.go @@ -10,10 +10,10 @@ import ( "path/filepath" "sync" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcwallet/internal/prompt" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcwallet/internal/prompt" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/wallet/multisig.go b/wallet/multisig.go index 5337841..da189fc 100644 --- a/wallet/multisig.go +++ b/wallet/multisig.go @@ -8,10 +8,10 @@ package wallet import ( "errors" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" ) // MakeMultiSigScript creates a multi-signature script that can be redeemed with diff --git a/wallet/notifications.go b/wallet/notifications.go index dee5ba3..dcbf798 100644 --- a/wallet/notifications.go +++ b/wallet/notifications.go @@ -8,13 +8,13 @@ import ( "bytes" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) // TODO: It would be good to send errors during notification creation to the rpc diff --git a/wallet/rescan.go b/wallet/rescan.go index effb28d..c298f06 100644 --- a/wallet/rescan.go +++ b/wallet/rescan.go @@ -5,12 +5,12 @@ package wallet import ( - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/chain" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/chain" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) // RescanProgressMsg reports the current progress made by a rescan for a diff --git a/wallet/txauthor/author.go b/wallet/txauthor/author.go index e77fd4e..43ba97a 100644 --- a/wallet/txauthor/author.go +++ b/wallet/txauthor/author.go @@ -8,14 +8,14 @@ package txauthor import ( "errors" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/wallet/txrules" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/wallet/txrules" - h "github.com/btcsuite/btcwallet/internal/helpers" - "github.com/btcsuite/btcwallet/wallet/internal/txsizes" + h "github.com/roasbeef/btcwallet/internal/helpers" + "github.com/roasbeef/btcwallet/wallet/internal/txsizes" ) // InputSource provides transaction inputs referencing spendable outputs to diff --git a/wallet/txauthor/author_test.go b/wallet/txauthor/author_test.go index fc02166..5873071 100644 --- a/wallet/txauthor/author_test.go +++ b/wallet/txauthor/author_test.go @@ -7,12 +7,12 @@ package txauthor_test import ( "testing" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - . "github.com/btcsuite/btcwallet/wallet/txauthor" - "github.com/btcsuite/btcwallet/wallet/txrules" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + . "github.com/roasbeef/btcwallet/wallet/txauthor" + "github.com/roasbeef/btcwallet/wallet/txrules" - "github.com/btcsuite/btcwallet/wallet/internal/txsizes" + "github.com/roasbeef/btcwallet/wallet/internal/txsizes" ) func p2pkhOutputs(amounts ...btcutil.Amount) []*wire.TxOut { diff --git a/wallet/txrules/rules.go b/wallet/txrules/rules.go index f2df7b9..97b6d2e 100644 --- a/wallet/txrules/rules.go +++ b/wallet/txrules/rules.go @@ -9,9 +9,9 @@ package txrules import ( "errors" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" ) // DefaultRelayFeePerKb is the default minimum relay fee policy for a mempool. diff --git a/wallet/unstable.go b/wallet/unstable.go index c34b6d1..ee7862d 100644 --- a/wallet/unstable.go +++ b/wallet/unstable.go @@ -6,9 +6,9 @@ package wallet import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) type unstableAPI struct { diff --git a/wallet/utxos.go b/wallet/utxos.go index f1f454d..3d8502e 100644 --- a/wallet/utxos.go +++ b/wallet/utxos.go @@ -6,9 +6,9 @@ package wallet import ( - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/txscript" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcwallet/walletdb" ) // OutputSelectionPolicy describes the rules for selecting an output from the diff --git a/walletdb/README.md b/walletdb/README.md index 9ca5361..e70efe3 100644 --- a/walletdb/README.md +++ b/walletdb/README.md @@ -1,8 +1,8 @@ walletdb ======== -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) Package walletdb provides a namespaced database interface for btcwallet. @@ -43,27 +43,27 @@ boltdb project at https://github.com/boltdb/bolt by Ben B. Johnson. ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/walletdb?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/walletdb) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/walletdb?status.png)] +(http://godoc.org/github.com/roasbeef/btcwallet/walletdb) 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/walletdb +http://godoc.org/github.com/roasbeef/btcwallet/walletdb 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/walletdb +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/walletdb ## Installation ```bash -$ go get github.com/btcsuite/btcwallet/walletdb +$ go get github.com/roasbeef/btcwallet/walletdb ``` ## Examples * [Basic Usage Example] - (http://godoc.org/github.com/btcsuite/btcwallet/walletdb#example-package--BasicUsage) + (http://godoc.org/github.com/roasbeef/btcwallet/walletdb#example-package--BasicUsage) Demonstrates creating a new database, getting a namespace from it, and using a managed read-write transaction against the namespace to store and retrieve data. diff --git a/walletdb/bdb/README.md b/walletdb/bdb/README.md index 5a99ae7..5e2219f 100644 --- a/walletdb/bdb/README.md +++ b/walletdb/bdb/README.md @@ -1,8 +1,8 @@ bdb === -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) Package bdb implements an driver for walletdb that uses boltdb for the backing datastore. Package bdb is licensed under the copyfree ISC license. @@ -29,16 +29,16 @@ if err != nil { ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/walletdb/bdb?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/walletdb/bdb) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/walletdb/bdb?status.png)] +(http://godoc.org/github.com/roasbeef/btcwallet/walletdb/bdb) 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/walletdb/bdb +http://godoc.org/github.com/roasbeef/btcwallet/walletdb/bdb 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/walletdb/bdb +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/walletdb/bdb ## License diff --git a/walletdb/bdb/db.go b/walletdb/bdb/db.go index e1e7aee..1344439 100644 --- a/walletdb/bdb/db.go +++ b/walletdb/bdb/db.go @@ -9,7 +9,7 @@ import ( "os" "github.com/boltdb/bolt" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/walletdb" ) // convertErr converts some bolt errors to the equivalent walletdb error. diff --git a/walletdb/bdb/driver.go b/walletdb/bdb/driver.go index 2a99cec..2e5ecd9 100644 --- a/walletdb/bdb/driver.go +++ b/walletdb/bdb/driver.go @@ -7,7 +7,7 @@ package bdb import ( "fmt" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/walletdb" ) const ( diff --git a/walletdb/bdb/driver_test.go b/walletdb/bdb/driver_test.go index 0b2208c..bb96c06 100644 --- a/walletdb/bdb/driver_test.go +++ b/walletdb/bdb/driver_test.go @@ -10,8 +10,8 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) // dbType is the database type name for this driver. diff --git a/walletdb/bdb/interface_test.go b/walletdb/bdb/interface_test.go index ec10fec..81e0318 100644 --- a/walletdb/bdb/interface_test.go +++ b/walletdb/bdb/interface_test.go @@ -16,7 +16,7 @@ import ( "os" "testing" - "github.com/btcsuite/btcwallet/walletdb/walletdbtest" + "github.com/roasbeef/btcwallet/walletdb/walletdbtest" ) // TestInterface performs all interfaces tests for this database driver. diff --git a/walletdb/db_test.go b/walletdb/db_test.go index 95ce2de..143f8a7 100644 --- a/walletdb/db_test.go +++ b/walletdb/db_test.go @@ -9,8 +9,8 @@ import ( "os" "testing" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) var ( diff --git a/walletdb/example_test.go b/walletdb/example_test.go index 73dda14..9777925 100644 --- a/walletdb/example_test.go +++ b/walletdb/example_test.go @@ -10,8 +10,8 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) // This example demonstrates creating a new database. @@ -19,8 +19,8 @@ func ExampleCreate() { // This example assumes the bdb (bolt db) driver is imported. // // import ( - // "github.com/btcsuite/btcwallet/walletdb" - // _ "github.com/btcsuite/btcwallet/walletdb/bdb" + // "github.com/roasbeef/btcwallet/walletdb" + // _ "github.com/roasbeef/btcwallet/walletdb/bdb" // ) // Create a database and schedule it to be closed and removed on exit. @@ -102,8 +102,8 @@ func Example_basicUsage() { // This example assumes the bdb (bolt db) driver is imported. // // import ( - // "github.com/btcsuite/btcwallet/walletdb" - // _ "github.com/btcsuite/btcwallet/walletdb/bdb" + // "github.com/roasbeef/btcwallet/walletdb" + // _ "github.com/roasbeef/btcwallet/walletdb/bdb" // ) // Create a database and schedule it to be closed and removed on exit. diff --git a/walletdb/walletdbtest/interface.go b/walletdb/walletdbtest/interface.go index 8a2beb1..c374ce9 100644 --- a/walletdb/walletdbtest/interface.go +++ b/walletdb/walletdbtest/interface.go @@ -9,7 +9,7 @@ import ( "os" "reflect" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/walletdb" ) // errSubTestFail is used to signal that a sub test returned false. diff --git a/walletsetup.go b/walletsetup.go index 09b29cc..5206b12 100644 --- a/walletsetup.go +++ b/walletsetup.go @@ -11,16 +11,16 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/internal/legacy/keystore" - "github.com/btcsuite/btcwallet/internal/prompt" - "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wallet" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" + "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/internal/legacy/keystore" + "github.com/roasbeef/btcwallet/internal/prompt" + "github.com/roasbeef/btcwallet/waddrmgr" + "github.com/roasbeef/btcwallet/wallet" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" ) // networkDir returns the directory name of a network directory to hold wallet diff --git a/wtxmgr/README.md b/wtxmgr/README.md index 1cd2676..87ecfef 100644 --- a/wtxmgr/README.md +++ b/wtxmgr/README.md @@ -1,8 +1,8 @@ wtxmgr ====== -[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] -(https://travis-ci.org/btcsuite/btcwallet) +[![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)] +(https://travis-ci.org/roasbeef/btcwallet) Package wtxmgr provides storage and spend tracking of wallet transactions and their relevant input and outputs. @@ -24,21 +24,21 @@ their relevant input and outputs. ## Documentation -[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/wtxmgr?status.png)] -(http://godoc.org/github.com/btcsuite/btcwallet/wtxmgr) +[![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/wtxmgr?status.png)] +(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/btcsuite/btcwallet/wtxmgr +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/btcsuite/btcwallet/wtxmgr +http://localhost:6060/pkg/github.com/roasbeef/btcwallet/wtxmgr ## Installation ```bash -$ go get github.com/btcsuite/btcwallet/wtxmgr +$ go get github.com/roasbeef/btcwallet/wtxmgr ``` Package wtxmgr is licensed under the [copyfree](http://copyfree.org) ISC diff --git a/wtxmgr/db.go b/wtxmgr/db.go index 88dc7a6..3b9da30 100644 --- a/wtxmgr/db.go +++ b/wtxmgr/db.go @@ -11,10 +11,10 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" ) // Naming diff --git a/wtxmgr/example_test.go b/wtxmgr/example_test.go index 7f418e5..7594ac9 100644 --- a/wtxmgr/example_test.go +++ b/wtxmgr/example_test.go @@ -7,11 +7,11 @@ package wtxmgr_test import ( "fmt" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcwallet/walletdb" - "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcwallet/walletdb" + "github.com/roasbeef/btcwallet/wtxmgr" ) var ( diff --git a/wtxmgr/kahnsort.go b/wtxmgr/kahnsort.go index f6a85b6..261dbc1 100644 --- a/wtxmgr/kahnsort.go +++ b/wtxmgr/kahnsort.go @@ -4,7 +4,7 @@ package wtxmgr -import "github.com/btcsuite/btcd/chaincfg/chainhash" +import "github.com/roasbeef/btcd/chaincfg/chainhash" type graphNode struct { value *TxRecord diff --git a/wtxmgr/query.go b/wtxmgr/query.go index 6e7f40f..b668eee 100644 --- a/wtxmgr/query.go +++ b/wtxmgr/query.go @@ -8,9 +8,9 @@ package wtxmgr import ( "fmt" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" ) // CreditRecord contains metadata regarding a transaction credit for a known diff --git a/wtxmgr/query_test.go b/wtxmgr/query_test.go index f5a2f50..be5ef94 100644 --- a/wtxmgr/query_test.go +++ b/wtxmgr/query_test.go @@ -11,11 +11,11 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" - . "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" + . "github.com/roasbeef/btcwallet/wtxmgr" ) type queryState struct { diff --git a/wtxmgr/tx.go b/wtxmgr/tx.go index dd619aa..c90b851 100644 --- a/wtxmgr/tx.go +++ b/wtxmgr/tx.go @@ -9,12 +9,12 @@ import ( "bytes" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/blockchain" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" ) // Block contains the minimum amount of data to uniquely identify any block on diff --git a/wtxmgr/tx_test.go b/wtxmgr/tx_test.go index c2765ba..3f6841c 100644 --- a/wtxmgr/tx_test.go +++ b/wtxmgr/tx_test.go @@ -13,13 +13,13 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcwallet/walletdb" - _ "github.com/btcsuite/btcwallet/walletdb/bdb" - . "github.com/btcsuite/btcwallet/wtxmgr" + "github.com/roasbeef/btcd/chaincfg" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcutil" + "github.com/roasbeef/btcwallet/walletdb" + _ "github.com/roasbeef/btcwallet/walletdb/bdb" + . "github.com/roasbeef/btcwallet/wtxmgr" ) // Received transaction output for mainnet outpoint diff --git a/wtxmgr/unconfirmed.go b/wtxmgr/unconfirmed.go index be68dba..6f7a71b 100644 --- a/wtxmgr/unconfirmed.go +++ b/wtxmgr/unconfirmed.go @@ -6,9 +6,9 @@ package wtxmgr import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcwallet/walletdb" + "github.com/roasbeef/btcd/chaincfg/chainhash" + "github.com/roasbeef/btcd/wire" + "github.com/roasbeef/btcwallet/walletdb" ) // insertMemPoolTx inserts the unmined transaction record. It also marks