multi: switch all imports to roasbeef's forks

This commit is contained in:
Olaoluwa Osuntokun 2017-06-05 17:54:35 -07:00
parent d9defda7ff
commit 3dc7a8529c
87 changed files with 479 additions and 479 deletions

View file

@ -1,7 +1,7 @@
btcwallet 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) [![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 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 btcwallet is not an SPV client and requires connecting to a local or
remote btcd instance for asynchronous blockchain queries and remote btcd instance for asynchronous blockchain queries and
notifications over websockets. Full btcd installation instructions 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 SPV mode that is compatible with btcd and Bitcoin Core is planned for
a future release. a future release.
@ -60,9 +60,9 @@ Wallet clients can use one of two RPC servers:
Install the latest MSIs available here: 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 ### 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): obtained manually with `git` and `glide` (create directories as needed):
``` ```
git clone https://github.com/btcsuite/btcwallet $GOPATH/src/github.com/btcsuite/btcwallet git clone https://github.com/roasbeef/btcwallet $GOPATH/src/github.com/roasbeef/btcwallet
cd $GOPATH/src/github.com/btcsuite/btcwallet cd $GOPATH/src/github.com/roasbeef/btcwallet
glide install glide install
``` ```
@ -105,7 +105,7 @@ To update an existing source tree, pull the latest changes and install the
matching dependencies: matching dependencies:
``` ```
cd $GOPATH/src/github.com/btcsuite/btcwallet cd $GOPATH/src/github.com/roasbeef/btcwallet
git pull git pull
glide install glide install
``` ```
@ -182,15 +182,15 @@ PS> $editor $env:LOCALAPPDATA\Btcwallet\btcwallet.conf
Linux/BSD/POSIX (Installed from source): Linux/BSD/POSIX (Installed from source):
```bash ```bash
$ cp $GOPATH/src/github.com/btcsuite/btcd/sample-btcd.conf ~/.btcd/btcd.conf $ cp $GOPATH/src/github.com/roasbeef/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/btcwallet/sample-btcwallet.conf ~/.btcwallet/btcwallet.conf
$ $EDITOR ~/.btcd/btcd.conf $ $EDITOR ~/.btcd/btcd.conf
$ $EDITOR ~/.btcwallet/btcwallet.conf $ $EDITOR ~/.btcwallet/btcwallet.conf
``` ```
## Issue Tracker ## 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. is used for this project.
## GPG Verification Key ## GPG Verification Key

View file

@ -14,10 +14,10 @@ import (
"runtime" "runtime"
"sync" "sync"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/rpc/legacyrpc" "github.com/roasbeef/btcwallet/rpc/legacyrpc"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/lightninglabs/neutrino" "github.com/lightninglabs/neutrino"
) )

View file

@ -3,11 +3,11 @@ package chain
import ( import (
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// Interface allows more than one backing blockchain source, such as a // Interface allows more than one backing blockchain source, such as a

View file

@ -6,12 +6,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcrpcclient" "github.com/roasbeef/btcrpcclient"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
"github.com/lightninglabs/neutrino" "github.com/lightninglabs/neutrino"
) )

View file

@ -331,7 +331,7 @@ out:
// TODO: A minute timeout is used to prevent the handler loop from // TODO: A minute timeout is used to prevent the handler loop from
// blocking here forever, but this is much larger than it needs to // blocking here forever, but this is much larger than it needs to
// be due to dcrd processing websocket requests synchronously (see // 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. // something saner like 3s when the above issue is fixed.
type sessionResult struct { type sessionResult struct {
err error err error

View file

@ -10,9 +10,9 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
"github.com/jessevdk/go-flags" "github.com/jessevdk/go-flags"
) )

View file

@ -15,11 +15,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/internal/cfgutil" "github.com/roasbeef/btcwallet/internal/cfgutil"
"github.com/btcsuite/btcwallet/internal/legacy/keystore" "github.com/roasbeef/btcwallet/internal/legacy/keystore"
"github.com/btcsuite/btcwallet/netparams" "github.com/roasbeef/btcwallet/netparams"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
"github.com/lightninglabs/neutrino" "github.com/lightninglabs/neutrino"
) )

View file

@ -1,3 +1,3 @@
### Guides ### 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)

View file

@ -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: 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 $ go get
``` ```

View file

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// AmountFlag embeds a btcutil.Amount and implements the flags.Marshaler and // AmountFlag embeds a btcutil.Amount and implements the flags.Marshaler and

View file

@ -7,8 +7,8 @@
package helpers package helpers
import ( import (
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// SumOutputValues sums up the list of TxOuts and returns an Amount. // SumOutputValues sums up the list of TxOuts and returns an Amount.

View file

@ -12,8 +12,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/internal/legacy/keystore" "github.com/roasbeef/btcwallet/internal/legacy/keystore"
"github.com/btcsuite/golangcrypto/ssh/terminal" "github.com/btcsuite/golangcrypto/ssh/terminal"
) )

View file

@ -12,8 +12,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcwallet/internal/rpchelp" "github.com/roasbeef/btcwallet/internal/rpchelp"
) )
var outputFile = func() *os.File { var outputFile = func() *os.File {

View file

@ -6,7 +6,7 @@
package rpchelp package rpchelp
import "github.com/btcsuite/btcd/btcjson" import "github.com/roasbeef/btcd/btcjson"
// Common return types. // Common return types.
var ( var (

View file

@ -7,7 +7,7 @@ package zero_test
import ( import (
"testing" "testing"
. "github.com/btcsuite/btcwallet/internal/zero" . "github.com/roasbeef/btcwallet/internal/zero"
) )
var ( var (

View file

@ -10,7 +10,7 @@ import (
"strings" "strings"
"testing" "testing"
. "github.com/btcsuite/btcwallet/internal/zero" . "github.com/roasbeef/btcwallet/internal/zero"
) )
func makeOneBytes(n int) []byte { func makeOneBytes(n int) []byte {

View file

@ -4,7 +4,7 @@
package netparams 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 // Params is used to group parameters for various networks such as the main
// network and test networks. // network and test networks.

View file

@ -4,6 +4,6 @@
package main package main
import "github.com/btcsuite/btcwallet/netparams" import "github.com/roasbeef/btcwallet/netparams"
var activeNet = &netparams.MainNetParams var activeNet = &netparams.MainNetParams

View file

@ -52,7 +52,7 @@ import (
"fmt" "fmt"
"path/filepath" "path/filepath"
pb "github.com/btcsuite/btcwallet/rpc/walletrpc" pb "github.com/roasbeef/btcwallet/rpc/walletrpc"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
@ -394,7 +394,7 @@ Full instructions for this procedure can be found
Generate Python stubs from the `.proto`: Generate Python stubs from the `.proto`:
```bash ```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) \ --plugin=protoc-gen-grpc=$(which grpc_python_plugin) \
/path/to/btcwallet/rpc/api.proto /path/to/btcwallet/rpc/api.proto
``` ```

View file

@ -7,7 +7,7 @@ package legacyrpc
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
) )
// TODO(jrick): There are several error paths which 'replace' various errors // TODO(jrick): There are several error paths which 'replace' various errors

View file

@ -15,19 +15,19 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcrpcclient" "github.com/roasbeef/btcrpcclient"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
"github.com/btcsuite/btcwallet/wallet/txrules" "github.com/roasbeef/btcwallet/wallet/txrules"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// confirmed checks whether a transaction at height txHeight has met minconf // confirmed checks whether a transaction at height txHeight has met minconf

View file

@ -18,8 +18,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcwallet/internal/rpchelp" "github.com/roasbeef/btcwallet/internal/rpchelp"
) )
func serverMethods() map[string]struct{} { func serverMethods() map[string]struct{} {

View file

@ -19,9 +19,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
"github.com/btcsuite/websocket" "github.com/btcsuite/websocket"
) )

View file

@ -8,11 +8,11 @@
// Full documentation of the API implemented by this package is maintained in a // Full documentation of the API implemented by this package is maintained in a
// language-agnostic document: // 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: // 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 package rpcserver
import ( import (

View file

@ -16,10 +16,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/rpc/legacyrpc" "github.com/roasbeef/btcwallet/rpc/legacyrpc"
"github.com/btcsuite/btcwallet/rpc/rpcserver" "github.com/roasbeef/btcwallet/rpc/rpcserver"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
) )

View file

@ -13,7 +13,7 @@ import (
"io" "io"
"runtime/debug" "runtime/debug"
"github.com/btcsuite/btcwallet/internal/zero" "github.com/roasbeef/btcwallet/internal/zero"
"github.com/btcsuite/golangcrypto/nacl/secretbox" "github.com/btcsuite/golangcrypto/nacl/secretbox"
"github.com/btcsuite/golangcrypto/scrypt" "github.com/btcsuite/golangcrypto/scrypt"
) )

View file

@ -1,8 +1,8 @@
votingpool votingpool
======== ========
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
Package votingpool provides voting pool functionality for btcwallet as Package votingpool provides voting pool functionality for btcwallet as
described here: described here:
@ -25,16 +25,16 @@ Note that this is still a work in progress.
## Documentation ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/votingpool?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/votingpool?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/votingpool) (http://godoc.org/github.com/roasbeef/btcwallet/votingpool)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 Package votingpool is licensed under the [copyfree](http://copyfree.org) ISC
License. License.

View file

@ -11,8 +11,8 @@ import (
"testing" "testing"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
func init() { func init() {

View file

@ -10,11 +10,11 @@ import (
"encoding/gob" "encoding/gob"
"fmt" "fmt"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/snacl" "github.com/roasbeef/btcwallet/snacl"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// These constants define the serialized length for a given encrypted extended // These constants define the serialized length for a given encrypted extended

View file

@ -9,7 +9,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
func TestPutUsedAddrHash(t *testing.T) { func TestPutUsedAddrHash(t *testing.T) {

View file

@ -7,7 +7,7 @@ package votingpool_test
import ( import (
"testing" "testing"
vp "github.com/btcsuite/btcwallet/votingpool" vp "github.com/roasbeef/btcwallet/votingpool"
) )
// TestErrorCodeStringer tests that all error codes has a text // TestErrorCodeStringer tests that all error codes has a text

View file

@ -23,14 +23,14 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/votingpool" "github.com/roasbeef/btcwallet/votingpool"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
var ( var (

View file

@ -27,15 +27,15 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
var ( var (

View file

@ -21,11 +21,11 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
const eligibleInputMinConfirmations = 100 const eligibleInputMinConfirmations = 100

View file

@ -10,11 +10,11 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
var ( var (

View file

@ -5,10 +5,10 @@
package votingpool package votingpool
import ( import (
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
var TstLastErr = lastErr var TstLastErr = lastErr

View file

@ -8,12 +8,12 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/internal/zero" "github.com/roasbeef/btcwallet/internal/zero"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -11,11 +11,11 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
vp "github.com/btcsuite/btcwallet/votingpool" vp "github.com/roasbeef/btcwallet/votingpool"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
func TestLoadPoolAndDepositScript(t *testing.T) { func TestLoadPoolAndDepositScript(t *testing.T) {

View file

@ -9,8 +9,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
) )
func TestPoolEnsureUsedAddr(t *testing.T) { func TestPoolEnsureUsedAddr(t *testing.T) {

View file

@ -1,142 +1,142 @@
github.com/btcsuite/btcwallet/votingpool/db.go serializeSeriesRow 100.00% (31/31) github.com/roasbeef/btcwallet/votingpool/db.go serializeSeriesRow 100.00% (31/31)
github.com/btcsuite/btcwallet/votingpool/pool.go branchOrder 100.00% (19/19) github.com/roasbeef/btcwallet/votingpool/pool.go branchOrder 100.00% (19/19)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.splitLastOutput 100.00% (16/16) github.com/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.splitLastOutput 100.00% (16/16)
github.com/btcsuite/btcwallet/votingpool/pool.go convertAndValidatePubKeys 100.00% (16/16) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.rollBackLastOutput 100.00% (10/10)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go calculateSize 100.00% (10/10) github.com/roasbeef/btcwallet/votingpool/withdrawal.go calculateSize 100.00% (10/10)
github.com/btcsuite/btcwallet/votingpool/pool.go Pool.decryptExtendedKey 100.00% (10/10) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.addChange 100.00% (7/7)
github.com/btcsuite/btcwallet/votingpool/db.go putPool 100.00% (5/5) github.com/roasbeef/btcwallet/votingpool/db.go putPool 100.00% (5/5)
github.com/btcsuite/btcwallet/votingpool/pool.go Create 100.00% (5/5) github.com/roasbeef/btcwallet/votingpool/pool.go Create 100.00% (5/5)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go newWithdrawalTx 100.00% (5/5) github.com/roasbeef/btcwallet/votingpool/withdrawal.go newWithdrawalTx 100.00% (5/5)
github.com/btcsuite/btcwallet/votingpool/db.go getUsedAddrHash 100.00% (4/4) github.com/roasbeef/btcwallet/votingpool/db.go getUsedAddrHash 100.00% (4/4)
github.com/btcsuite/btcwallet/votingpool/pool.go CanonicalKeyOrder 100.00% (4/4) github.com/roasbeef/btcwallet/votingpool/pool.go CanonicalKeyOrder 100.00% (4/4)
github.com/btcsuite/btcwallet/votingpool/pool.go SeriesData.IsEmpowered 100.00% (4/4) github.com/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Pool.DepositScriptAddress 100.00% (4/4)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go getRedeemScript 100.00% (4/4) github.com/roasbeef/btcwallet/votingpool/withdrawal.go getRedeemScript 100.00% (4/4)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go newWithdrawal 100.00% (4/4) github.com/roasbeef/btcwallet/votingpool/withdrawal.go newWithdrawal 100.00% (4/4)
github.com/btcsuite/btcwallet/votingpool/db.go @102:3 100.00% (4/4) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go @458:26 100.00% (3/3)
github.com/btcsuite/btcwallet/votingpool/db.go uint32ToBytes 100.00% (3/3) github.com/roasbeef/btcwallet/votingpool/db.go uint32ToBytes 100.00% (3/3)
github.com/btcsuite/btcwallet/votingpool/pool.go @811:3 100.00% (3/3) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/withdrawal.go withdrawalTx.addOutput 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/db.go putSeries 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/db.go putSeries 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go Ntxid 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/withdrawal.go Ntxid 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/pool.go Pool.addressFor 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/pool.go Pool.addressFor 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/pool.go zero 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/pool.go zero 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/pool.go @780:3 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/pool.go @780:3 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/db.go existsPool 100.00% (2/2) github.com/roasbeef/btcwallet/votingpool/db.go existsPool 100.00% (2/2)
github.com/btcsuite/btcwallet/votingpool/db.go getUsedAddrBucketID 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/db.go getUsedAddrBucketID 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/db.go bytesToUint32 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/db.go bytesToUint32 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/error.go newError 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/error.go newError 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/input_selection.go newCredit 100.00% (1/1) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/log.go init 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/log.go DisableLog 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/log.go DisableLog 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/log.go UseLogger 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/log.go UseLogger 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/pool.go @105:3 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/pool.go @105:3 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/pool.go newPool 100.00% (1/1) github.com/roasbeef/btcwallet/votingpool/pool.go newPool 100.00% (1/1)
github.com/btcsuite/btcwallet/votingpool/pool.go Pool.Manager 100.00% (1/1) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Pool.EmpowerSeries 96.30% (26/27)
github.com/btcsuite/btcwallet/votingpool/db.go deserializeSeriesRow 94.59% (35/37) github.com/roasbeef/btcwallet/votingpool/db.go deserializeSeriesRow 94.59% (35/37)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.fulfillNextRequest 94.44% (17/18) github.com/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Pool.putSeries 93.75% (15/16)
github.com/btcsuite/btcwallet/votingpool/pool.go validateAndDecryptKeys 92.31% (24/26) github.com/roasbeef/btcwallet/votingpool/pool.go validateAndDecryptKeys 92.31% (24/26)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go getRawSigs 91.43% (32/35) github.com/roasbeef/btcwallet/votingpool/withdrawal.go getRawSigs 91.43% (32/35)
github.com/btcsuite/btcwallet/votingpool/input_selection.go nextAddr 90.48% (19/21) github.com/roasbeef/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/roasbeef/btcwallet/votingpool/withdrawal.go withdrawal.fulfillRequests 87.50% (14/16)
github.com/btcsuite/btcwallet/votingpool/db.go getMaxUsedIdx 87.50% (7/8) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Load 85.71% (6/7)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go signMultiSigUTXO 85.19% (23/27) github.com/roasbeef/btcwallet/votingpool/withdrawal.go signMultiSigUTXO 85.19% (23/27)
github.com/btcsuite/btcwallet/votingpool/input_selection.go groupCreditsByAddr 83.33% (10/12) github.com/roasbeef/btcwallet/votingpool/input_selection.go groupCreditsByAddr 83.33% (10/12)
github.com/btcsuite/btcwallet/votingpool/db.go loadAllSeries 83.33% (5/6) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Pool.LoadAllSeries 80.00% (8/10)
github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndCreateSeries 80.00% (8/10) github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndCreateSeries 80.00% (8/10)
github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndEmpowerSeries 80.00% (4/5) github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndEmpowerSeries 80.00% (4/5)
github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndReplaceSeries 80.00% (4/5) github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndReplaceSeries 80.00% (4/5)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go withdrawal.finalizeCurrentTx 79.31% (23/29) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go Pool.ensureUsedAddr 75.00% (9/12)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go validateSigScript 75.00% (6/8) github.com/roasbeef/btcwallet/votingpool/withdrawal.go validateSigScript 75.00% (6/8)
github.com/btcsuite/btcwallet/votingpool/pool.go LoadAndGetDepositScript 75.00% (6/8) github.com/roasbeef/btcwallet/votingpool/pool.go LoadAndGetDepositScript 75.00% (6/8)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go getTxOutIndex 75.00% (3/4) github.com/roasbeef/btcwallet/votingpool/withdrawal.go getTxOutIndex 75.00% (3/4)
github.com/btcsuite/btcwallet/votingpool/pool.go Pool.poolAddress 75.00% (3/4) github.com/roasbeef/btcwallet/votingpool/pool.go Pool.poolAddress 75.00% (3/4)
github.com/btcsuite/btcwallet/votingpool/db.go putUsedAddrHash 75.00% (3/4) github.com/roasbeef/btcwallet/votingpool/db.go putUsedAddrHash 75.00% (3/4)
github.com/btcsuite/btcwallet/votingpool/pool.go SeriesData.getPrivKeyFor 75.00% (3/4) github.com/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/db.go @132:3 71.43% (5/7)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go nextChangeAddr 71.43% (5/7) github.com/roasbeef/btcwallet/votingpool/withdrawal.go nextChangeAddr 71.43% (5/7)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go storeTransactions 70.59% (12/17) github.com/roasbeef/btcwallet/votingpool/withdrawal.go storeTransactions 70.59% (12/17)
github.com/btcsuite/btcwallet/votingpool/pool.go Pool.saveSeriesToDisk 70.00% (14/20) github.com/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/error.go ErrorCode.String 66.67% (2/3)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go SignTx 62.50% (5/8) github.com/roasbeef/btcwallet/votingpool/withdrawal.go SignTx 62.50% (5/8)
github.com/btcsuite/btcwallet/votingpool/db.go putSeriesRow 53.85% (7/13) github.com/roasbeef/btcwallet/votingpool/db.go putSeriesRow 53.85% (7/13)
github.com/btcsuite/btcwallet/votingpool/withdrawal.go nBytesToSerialize 40.00% (2/5) github.com/roasbeef/btcwallet/votingpool/withdrawal.go nBytesToSerialize 40.00% (2/5)
github.com/btcsuite/btcwallet/votingpool/error.go Error.Error 0.00% (0/3) github.com/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/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/roasbeef/btcwallet/votingpool/pool.go poolAddress.String 0.00% (0/1)
github.com/btcsuite/btcwallet/votingpool ------------------------------- 87.49% (818/935) github.com/roasbeef/btcwallet/votingpool ------------------------------- 87.49% (818/935)

View file

@ -14,12 +14,12 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// Maximum tx size (in bytes). This should be the same as bitcoind's // Maximum tx size (in bytes). This should be the same as bitcoind's

View file

@ -8,9 +8,9 @@ import (
"bytes" "bytes"
"testing" "testing"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
vp "github.com/btcsuite/btcwallet/votingpool" vp "github.com/roasbeef/btcwallet/votingpool"
) )
func TestStartWithdrawal(t *testing.T) { func TestStartWithdrawal(t *testing.T) {

View file

@ -10,14 +10,14 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// TestOutputSplittingNotEnoughInputs checks that an output will get split if we // TestOutputSplittingNotEnoughInputs checks that an output will get split if we

View file

@ -1,8 +1,8 @@
waddrmgr waddrmgr
======== ========
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
Package waddrmgr provides a secure hierarchical deterministic wallet address Package waddrmgr provides a secure hierarchical deterministic wallet address
manager. manager.
@ -41,21 +41,21 @@ report. Package waddrmgr is licensed under the liberal ISC license.
## Documentation ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/waddrmgr?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/waddrmgr?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/waddrmgr) (http://godoc.org/github.com/roasbeef/btcwallet/waddrmgr)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 ## Installation
```bash ```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 Package waddrmgr is licensed under the [copyfree](http://copyfree.org) ISC

View file

@ -9,12 +9,12 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/internal/zero" "github.com/roasbeef/btcwallet/internal/zero"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// AddressType represents the various address types waddrmgr is currently able // AddressType represents the various address types waddrmgr is currently able

View file

@ -11,10 +11,10 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
var ( var (

View file

@ -12,10 +12,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
) )
var ( var (

View file

@ -9,7 +9,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
) )
// TestErrorCodeStringer tests the stringized output for the ErrorCode type. // TestErrorCodeStringer tests the stringized output for the ErrorCode type.

View file

@ -14,7 +14,7 @@ package waddrmgr
import ( import (
"errors" "errors"
"github.com/btcsuite/btcwallet/snacl" "github.com/roasbeef/btcwallet/snacl"
) )
// TstMaxRecentHashes makes the unexported maxRecentHashes constant available // TstMaxRecentHashes makes the unexported maxRecentHashes constant available

View file

@ -10,14 +10,14 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/internal/zero" "github.com/roasbeef/btcwallet/internal/zero"
"github.com/btcsuite/btcwallet/snacl" "github.com/roasbeef/btcwallet/snacl"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -11,11 +11,11 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// newHash converts the passed big-endian hex string into a chainhash.Hash. // newHash converts the passed big-endian hex string into a chainhash.Hash.

View file

@ -7,8 +7,8 @@ package waddrmgr
import ( import (
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -1,8 +1,8 @@
wallet wallet
====== ======
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
## Feature Overview ## Feature Overview
@ -10,21 +10,21 @@ TODO: Flesh out this section
## Documentation ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/wallet?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/wallet?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/wallet) (http://godoc.org/github.com/roasbeef/btcwallet/wallet)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 ## Installation
```bash ```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 Package wallet is licensed under the [copyfree](http://copyfree.org) ISC

View file

@ -5,11 +5,11 @@
package wallet package wallet
import ( import (
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
func (w *Wallet) handleChainNotifications() { func (w *Wallet) handleChainNotifications() {

View file

@ -8,9 +8,9 @@ package wallet
import ( import (
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// Note: The following common types should never reference the Wallet type. // Note: The following common types should never reference the Wallet type.

View file

@ -9,14 +9,14 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wallet/txauthor" "github.com/roasbeef/btcwallet/wallet/txauthor"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// byAmount defines the methods needed to satisify sort.Interface to // byAmount defines the methods needed to satisify sort.Interface to

View file

@ -5,9 +5,9 @@
package txsizes package txsizes
import ( 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. // Worst case script and input/output size estimates.

View file

@ -3,8 +3,8 @@ package txsizes_test
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
. "github.com/btcsuite/btcwallet/wallet/internal/txsizes" . "github.com/roasbeef/btcwallet/wallet/internal/txsizes"
) )
const ( const (

View file

@ -10,10 +10,10 @@ import (
"path/filepath" "path/filepath"
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcwallet/internal/prompt" "github.com/roasbeef/btcwallet/internal/prompt"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -8,10 +8,10 @@ package wallet
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// MakeMultiSigScript creates a multi-signature script that can be redeemed with // MakeMultiSigScript creates a multi-signature script that can be redeemed with

View file

@ -8,13 +8,13 @@ import (
"bytes" "bytes"
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// TODO: It would be good to send errors during notification creation to the rpc // TODO: It would be good to send errors during notification creation to the rpc

View file

@ -5,12 +5,12 @@
package wallet package wallet
import ( import (
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
// RescanProgressMsg reports the current progress made by a rescan for a // RescanProgressMsg reports the current progress made by a rescan for a

View file

@ -8,14 +8,14 @@ package txauthor
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/wallet/txrules" "github.com/roasbeef/btcwallet/wallet/txrules"
h "github.com/btcsuite/btcwallet/internal/helpers" h "github.com/roasbeef/btcwallet/internal/helpers"
"github.com/btcsuite/btcwallet/wallet/internal/txsizes" "github.com/roasbeef/btcwallet/wallet/internal/txsizes"
) )
// InputSource provides transaction inputs referencing spendable outputs to // InputSource provides transaction inputs referencing spendable outputs to

View file

@ -7,12 +7,12 @@ package txauthor_test
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
. "github.com/btcsuite/btcwallet/wallet/txauthor" . "github.com/roasbeef/btcwallet/wallet/txauthor"
"github.com/btcsuite/btcwallet/wallet/txrules" "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 { func p2pkhOutputs(amounts ...btcutil.Amount) []*wire.TxOut {

View file

@ -9,9 +9,9 @@ package txrules
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// DefaultRelayFeePerKb is the default minimum relay fee policy for a mempool. // DefaultRelayFeePerKb is the default minimum relay fee policy for a mempool.

View file

@ -6,9 +6,9 @@
package wallet package wallet
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
type unstableAPI struct { type unstableAPI struct {

View file

@ -6,9 +6,9 @@
package wallet package wallet
import ( import (
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// OutputSelectionPolicy describes the rules for selecting an output from the // OutputSelectionPolicy describes the rules for selecting an output from the

View file

@ -1,8 +1,8 @@
walletdb walletdb
======== ========
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
Package walletdb provides a namespaced database interface for 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 ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/walletdb?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/walletdb?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/walletdb) (http://godoc.org/github.com/roasbeef/btcwallet/walletdb)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 ## Installation
```bash ```bash
$ go get github.com/btcsuite/btcwallet/walletdb $ go get github.com/roasbeef/btcwallet/walletdb
``` ```
## Examples ## Examples
* [Basic Usage Example] * [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 Demonstrates creating a new database, getting a namespace from it, and using a
managed read-write transaction against the namespace to store and retrieve managed read-write transaction against the namespace to store and retrieve
data. data.

View file

@ -1,8 +1,8 @@
bdb bdb
=== ===
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
Package bdb implements an driver for walletdb that uses boltdb for the backing Package bdb implements an driver for walletdb that uses boltdb for the backing
datastore. Package bdb is licensed under the copyfree ISC license. datastore. Package bdb is licensed under the copyfree ISC license.
@ -29,16 +29,16 @@ if err != nil {
## Documentation ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/walletdb/bdb?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/walletdb/bdb?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/walletdb/bdb) (http://godoc.org/github.com/roasbeef/btcwallet/walletdb/bdb)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 ## License

View file

@ -9,7 +9,7 @@ import (
"os" "os"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// convertErr converts some bolt errors to the equivalent walletdb error. // convertErr converts some bolt errors to the equivalent walletdb error.

View file

@ -7,7 +7,7 @@ package bdb
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
const ( const (

View file

@ -10,8 +10,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
// dbType is the database type name for this driver. // dbType is the database type name for this driver.

View file

@ -16,7 +16,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/btcsuite/btcwallet/walletdb/walletdbtest" "github.com/roasbeef/btcwallet/walletdb/walletdbtest"
) )
// TestInterface performs all interfaces tests for this database driver. // TestInterface performs all interfaces tests for this database driver.

View file

@ -9,8 +9,8 @@ import (
"os" "os"
"testing" "testing"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
var ( var (

View file

@ -10,8 +10,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
// This example demonstrates creating a new database. // This example demonstrates creating a new database.
@ -19,8 +19,8 @@ func ExampleCreate() {
// This example assumes the bdb (bolt db) driver is imported. // This example assumes the bdb (bolt db) driver is imported.
// //
// import ( // import (
// "github.com/btcsuite/btcwallet/walletdb" // "github.com/roasbeef/btcwallet/walletdb"
// _ "github.com/btcsuite/btcwallet/walletdb/bdb" // _ "github.com/roasbeef/btcwallet/walletdb/bdb"
// ) // )
// Create a database and schedule it to be closed and removed on exit. // 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. // This example assumes the bdb (bolt db) driver is imported.
// //
// import ( // import (
// "github.com/btcsuite/btcwallet/walletdb" // "github.com/roasbeef/btcwallet/walletdb"
// _ "github.com/btcsuite/btcwallet/walletdb/bdb" // _ "github.com/roasbeef/btcwallet/walletdb/bdb"
// ) // )
// Create a database and schedule it to be closed and removed on exit. // Create a database and schedule it to be closed and removed on exit.

View file

@ -9,7 +9,7 @@ import (
"os" "os"
"reflect" "reflect"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// errSubTestFail is used to signal that a sub test returned false. // errSubTestFail is used to signal that a sub test returned false.

View file

@ -11,16 +11,16 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/internal/legacy/keystore" "github.com/roasbeef/btcwallet/internal/legacy/keystore"
"github.com/btcsuite/btcwallet/internal/prompt" "github.com/roasbeef/btcwallet/internal/prompt"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wallet" "github.com/roasbeef/btcwallet/wallet"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
) )
// networkDir returns the directory name of a network directory to hold wallet // networkDir returns the directory name of a network directory to hold wallet

View file

@ -1,8 +1,8 @@
wtxmgr wtxmgr
====== ======
[![Build Status](https://travis-ci.org/btcsuite/btcwallet.png?branch=master)] [![Build Status](https://travis-ci.org/roasbeef/btcwallet.png?branch=master)]
(https://travis-ci.org/btcsuite/btcwallet) (https://travis-ci.org/roasbeef/btcwallet)
Package wtxmgr provides storage and spend tracking of wallet transactions and Package wtxmgr provides storage and spend tracking of wallet transactions and
their relevant input and outputs. their relevant input and outputs.
@ -24,21 +24,21 @@ their relevant input and outputs.
## Documentation ## Documentation
[![GoDoc](https://godoc.org/github.com/btcsuite/btcwallet/wtxmgr?status.png)] [![GoDoc](https://godoc.org/github.com/roasbeef/btcwallet/wtxmgr?status.png)]
(http://godoc.org/github.com/btcsuite/btcwallet/wtxmgr) (http://godoc.org/github.com/roasbeef/btcwallet/wtxmgr)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: 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 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 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 ## Installation
```bash ```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 Package wtxmgr is licensed under the [copyfree](http://copyfree.org) ISC

View file

@ -11,10 +11,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// Naming // Naming

View file

@ -7,11 +7,11 @@ package wtxmgr_test
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/roasbeef/btcwallet/wtxmgr"
) )
var ( var (

View file

@ -4,7 +4,7 @@
package wtxmgr package wtxmgr
import "github.com/btcsuite/btcd/chaincfg/chainhash" import "github.com/roasbeef/btcd/chaincfg/chainhash"
type graphNode struct { type graphNode struct {
value *TxRecord value *TxRecord

View file

@ -8,9 +8,9 @@ package wtxmgr
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// CreditRecord contains metadata regarding a transaction credit for a known // CreditRecord contains metadata regarding a transaction credit for a known

View file

@ -11,11 +11,11 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
. "github.com/btcsuite/btcwallet/wtxmgr" . "github.com/roasbeef/btcwallet/wtxmgr"
) )
type queryState struct { type queryState struct {

View file

@ -9,12 +9,12 @@ import (
"bytes" "bytes"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/roasbeef/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// Block contains the minimum amount of data to uniquely identify any block on // Block contains the minimum amount of data to uniquely identify any block on

View file

@ -13,13 +13,13 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
. "github.com/btcsuite/btcwallet/wtxmgr" . "github.com/roasbeef/btcwallet/wtxmgr"
) )
// Received transaction output for mainnet outpoint // Received transaction output for mainnet outpoint

View file

@ -6,9 +6,9 @@
package wtxmgr package wtxmgr
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcwallet/walletdb" "github.com/roasbeef/btcwallet/walletdb"
) )
// insertMemPoolTx inserts the unmined transaction record. It also marks // insertMemPoolTx inserts the unmined transaction record. It also marks