multi: switch all imports to roasbeef's forks
This commit is contained in:
parent
d9defda7ff
commit
3dc7a8529c
87 changed files with 479 additions and 479 deletions
20
README.md
20
README.md
|
@ -1,7 +1,7 @@
|
|||
btcwallet
|
||||
=========
|
||||
|
||||
[](https://travis-ci.org/btcsuite/btcwallet)
|
||||
[](https://travis-ci.org/roasbeef/btcwallet)
|
||||
[](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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
10
config.go
10
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"
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
package rpchelp
|
||||
|
||||
import "github.com/btcsuite/btcd/btcjson"
|
||||
import "github.com/roasbeef/btcd/btcjson"
|
||||
|
||||
// Common return types.
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ package zero_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/btcsuite/btcwallet/internal/zero"
|
||||
. "github.com/roasbeef/btcwallet/internal/zero"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
. "github.com/btcsuite/btcwallet/internal/zero"
|
||||
. "github.com/roasbeef/btcwallet/internal/zero"
|
||||
)
|
||||
|
||||
func makeOneBytes(n int) []byte {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
package main
|
||||
|
||||
import "github.com/btcsuite/btcwallet/netparams"
|
||||
import "github.com/roasbeef/btcwallet/netparams"
|
||||
|
||||
var activeNet = &netparams.MainNetParams
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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{} {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
votingpool
|
||||
========
|
||||
|
||||
[]
|
||||
(https://travis-ci.org/btcsuite/btcwallet)
|
||||
[]
|
||||
(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
|
||||
|
||||
[]
|
||||
(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
|
||||
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.
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/btcsuite/btcwallet/walletdb"
|
||||
"github.com/roasbeef/btcwallet/walletdb"
|
||||
)
|
||||
|
||||
func TestPutUsedAddrHash(t *testing.T) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
waddrmgr
|
||||
========
|
||||
|
||||
[]
|
||||
(https://travis-ci.org/btcsuite/btcwallet)
|
||||
[]
|
||||
(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
|
||||
|
||||
[]
|
||||
(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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/btcsuite/btcutil/hdkeychain"
|
||||
"github.com/roasbeef/btcutil/hdkeychain"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
wallet
|
||||
======
|
||||
|
||||
[]
|
||||
(https://travis-ci.org/btcsuite/btcwallet)
|
||||
[]
|
||||
(https://travis-ci.org/roasbeef/btcwallet)
|
||||
|
||||
## Feature Overview
|
||||
|
||||
|
@ -10,21 +10,21 @@ TODO: Flesh out this section
|
|||
|
||||
## Documentation
|
||||
|
||||
[]
|
||||
(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
|
||||
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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
walletdb
|
||||
========
|
||||
|
||||
[]
|
||||
(https://travis-ci.org/btcsuite/btcwallet)
|
||||
[]
|
||||
(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
|
||||
|
||||
[]
|
||||
(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
|
||||
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.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
bdb
|
||||
===
|
||||
|
||||
[]
|
||||
(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
|
||||
datastore. Package bdb is licensed under the copyfree ISC license.
|
||||
|
@ -29,16 +29,16 @@ if err != nil {
|
|||
|
||||
## Documentation
|
||||
|
||||
[]
|
||||
(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
|
||||
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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -7,7 +7,7 @@ package bdb
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/btcsuite/btcwallet/walletdb"
|
||||
"github.com/roasbeef/btcwallet/walletdb"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
wtxmgr
|
||||
======
|
||||
|
||||
[]
|
||||
(https://travis-ci.org/btcsuite/btcwallet)
|
||||
[]
|
||||
(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
|
||||
|
||||
[]
|
||||
(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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
12
wtxmgr/tx.go
12
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue