multi: point all imports towards roasbeef's forks
This commit is contained in:
parent
1b19a78b48
commit
77b756c651
52 changed files with 143 additions and 148 deletions
|
@ -13,9 +13,9 @@ 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"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -12,7 +12,6 @@ import (
|
||||||
"github.com/btcsuite/btcd/btcjson"
|
"github.com/btcsuite/btcd/btcjson"
|
||||||
"github.com/btcsuite/btcd/chaincfg"
|
"github.com/btcsuite/btcd/chaincfg"
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcrpcclient"
|
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcwallet/waddrmgr"
|
"github.com/btcsuite/btcwallet/waddrmgr"
|
||||||
"github.com/btcsuite/btcwallet/wtxmgr"
|
"github.com/btcsuite/btcwallet/wtxmgr"
|
||||||
|
@ -368,7 +367,7 @@ out:
|
||||||
// loop from blocking here forever, but this is much larger
|
// loop from blocking here forever, but this is much larger
|
||||||
// than it needs to be due to btcd processing websocket
|
// than it needs to be due to btcd processing websocket
|
||||||
// requests synchronously (see
|
// requests synchronously (see
|
||||||
// https://github.com/btcsuite/btcd/issues/504). Decrease
|
// https://github.com/roasbeef/btcd/issues/504). Decrease
|
||||||
// this to something saner like 3s when the above issue is
|
// this to something saner like 3s when the above issue is
|
||||||
// fixed.
|
// fixed.
|
||||||
type sessionResult struct {
|
type sessionResult struct {
|
||||||
|
|
|
@ -14,14 +14,13 @@ import (
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/txscript"
|
"github.com/btcsuite/btcd/txscript"
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
"github.com/btcsuite/btcrpcclient"
|
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcwallet/internal/cfgutil"
|
|
||||||
"github.com/btcsuite/btcwallet/netparams"
|
"github.com/btcsuite/btcwallet/netparams"
|
||||||
"github.com/btcsuite/btcwallet/wallet/txauthor"
|
"github.com/btcsuite/btcwallet/wallet/txauthor"
|
||||||
"github.com/btcsuite/btcwallet/wallet/txrules"
|
"github.com/btcsuite/btcwallet/wallet/txrules"
|
||||||
"github.com/btcsuite/golangcrypto/ssh/terminal"
|
"github.com/btcsuite/golangcrypto/ssh/terminal"
|
||||||
"github.com/jessevdk/go-flags"
|
"github.com/jessevdk/go-flags"
|
||||||
|
"github.com/roasbeef/btcwallet/internal/cfgutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -22,6 +22,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"golang.org/x/crypto/ripemd160"
|
||||||
|
|
||||||
"github.com/btcsuite/btcd/btcec"
|
"github.com/btcsuite/btcd/btcec"
|
||||||
"github.com/btcsuite/btcd/chaincfg"
|
"github.com/btcsuite/btcd/chaincfg"
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
|
@ -29,7 +31,6 @@ import (
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcwallet/internal/legacy/rename"
|
"github.com/btcsuite/btcwallet/internal/legacy/rename"
|
||||||
"github.com/btcsuite/golangcrypto/ripemd160"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -16,7 +16,6 @@ import (
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/txscript"
|
"github.com/btcsuite/btcd/txscript"
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
1
log.go
1
log.go
|
@ -10,7 +10,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/btcsuite/btclog"
|
"github.com/btcsuite/btclog"
|
||||||
"github.com/btcsuite/btcrpcclient"
|
|
||||||
"github.com/btcsuite/btcwallet/chain"
|
"github.com/btcsuite/btcwallet/chain"
|
||||||
"github.com/btcsuite/btcwallet/rpc/legacyrpc"
|
"github.com/btcsuite/btcwallet/rpc/legacyrpc"
|
||||||
"github.com/btcsuite/btcwallet/rpc/rpcserver"
|
"github.com/btcsuite/btcwallet/rpc/rpcserver"
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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{} {
|
||||||
|
|
|
@ -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 (
|
||||||
|
@ -28,7 +28,6 @@ import (
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/txscript"
|
"github.com/btcsuite/btcd/txscript"
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
"github.com/btcsuite/btcrpcclient"
|
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcutil/hdkeychain"
|
"github.com/btcsuite/btcutil/hdkeychain"
|
||||||
"github.com/btcsuite/btcwallet/chain"
|
"github.com/btcsuite/btcwallet/chain"
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/btcsuite/btclog"
|
"github.com/btcsuite/btclog"
|
||||||
"github.com/btcsuite/btcwallet/waddrmgr"
|
"github.com/roasbeef/btcwallet/waddrmgr"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -21,10 +21,10 @@ 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/wtxmgr"
|
"github.com/roasbeef/btcwallet/wtxmgr"
|
||||||
)
|
)
|
||||||
|
|
||||||
const eligibleInputMinConfirmations = 100
|
const eligibleInputMinConfirmations = 100
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -9,11 +9,11 @@ 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"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AddressType represents the various address types waddrmgr is currently able
|
// AddressType represents the various address types waddrmgr is currently able
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/btcsuite/btcutil/hdkeychain"
|
"github.com/roasbeef/btcutil/hdkeychain"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
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/wtxmgr"
|
"github.com/roasbeef/btcwallet/wtxmgr"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (w *Wallet) handleChainNotifications() {
|
func (w *Wallet) handleChainNotifications() {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
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/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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -24,7 +24,6 @@ import (
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/txscript"
|
"github.com/btcsuite/btcd/txscript"
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
"github.com/btcsuite/btcrpcclient"
|
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcutil/hdkeychain"
|
"github.com/btcsuite/btcutil/hdkeychain"
|
||||||
"github.com/btcsuite/btcwallet/chain"
|
"github.com/btcsuite/btcwallet/chain"
|
||||||
|
|
|
@ -7,7 +7,7 @@ package bdb
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/btcsuite/btcwallet/walletdb"
|
"github.com/roasbeef/btcwallet/walletdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/btcsuite/btcwallet/walletdb"
|
"github.com/roasbeef/btcwallet/walletdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// subTestFailError is used to signal that a sub test returned false.
|
// subTestFailError is used to signal that a sub test returned false.
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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.
|
||||||
|
@ -96,8 +96,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.
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/btcsuite/btcwallet/walletdb"
|
"github.com/roasbeef/btcwallet/walletdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// subTestFailError is used to signal that a sub test returned false.
|
// subTestFailError is used to signal that a sub test returned false.
|
||||||
|
|
|
@ -10,16 +10,16 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"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
|
||||||
|
|
Loading…
Reference in a new issue