multi: change all imports to roasbeef's forks

This commit will allow the general public to build lnd without jumping
through hoops setting up their local git branches nicely with all of
our forks.
This commit is contained in:
Olaoluwa Osuntokun 2016-05-15 17:17:44 +03:00
parent f78283a438
commit fcff17c336
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
57 changed files with 153 additions and 170 deletions

@ -7,11 +7,11 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/btcsuite/btcd/btcjson"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcrpcclient"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/chainntfs" "github.com/lightningnetwork/lnd/chainntfs"
"github.com/roasbeef/btcd/btcjson"
"github.com/roasbeef/btcd/wire"
"github.com/roasbeef/btcrpcclient"
"github.com/roasbeef/btcutil"
) )
// BtcdNotifier implements the ChainNotifier interface using btcd's websockets // BtcdNotifier implements the ChainNotifier interface using btcd's websockets

@ -6,11 +6,11 @@ import (
"time" "time"
"github.com/Roasbeef/btcd/rpctest" "github.com/Roasbeef/btcd/rpctest"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"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/lightningnetwork/lnd/chainntfs" "github.com/lightningnetwork/lnd/chainntfs"
) )

@ -1,6 +1,6 @@
package chainntnfs package chainntnfs
import "github.com/btcsuite/btcd/wire" import "github.com/roasbeef/btcd/wire"
// ChainNotifier represents a trusted source to receive notifications concerning // ChainNotifier represents a trusted source to receive notifications concerning
// targeted events on the Bitcoin blockchain. The interface specification is // targeted events on the Bitcoin blockchain. The interface specification is

@ -8,11 +8,11 @@ import (
"time" "time"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcwallet/walletdb"
"github.com/btcsuite/btcwallet/walletdb"
"github.com/lightningnetwork/lnd/elkrem" "github.com/lightningnetwork/lnd/elkrem"
"github.com/roasbeef/btcutil"
) )
var ( var (

@ -7,13 +7,13 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" _ "github.com/roasbeef/btcwallet/walletdb/bdb"
_ "github.com/btcsuite/btcwallet/walletdb/bdb"
"github.com/lightningnetwork/lnd/elkrem" "github.com/lightningnetwork/lnd/elkrem"
"github.com/roasbeef/btcutil"
) )
var ( var (

@ -9,7 +9,7 @@ import (
"sync" "sync"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
) )
const ( const (

@ -6,7 +6,7 @@ import (
"golang.org/x/crypto/ripemd160" "golang.org/x/crypto/ripemd160"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
var ( var (

@ -7,8 +7,8 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
flags "github.com/btcsuite/go-flags" flags "github.com/btcsuite/go-flags"
) )

@ -3,7 +3,7 @@ package elkrem
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
/* elkrem is a simpler alternative to the 64 dimensional sha-chain. /* elkrem is a simpler alternative to the 64 dimensional sha-chain.

@ -3,7 +3,7 @@ package elkrem
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
// TestElkremBig makes a height 63 (max size possible) tree and tries 10K hashes // TestElkremBig makes a height 63 (max size possible) tree and tries 10K hashes

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
/* findpre - find the pre-image for a given hash /* findpre - find the pre-image for a given hash

@ -5,7 +5,7 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
/* Serialization and Deserialization methods for the Elkrem structs. /* Serialization and Deserialization methods for the Elkrem structs.

@ -9,11 +9,11 @@ import (
"net" "net"
"time" "time"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/fastsha256" "github.com/btcsuite/fastsha256"
"github.com/codahale/chacha20poly1305" "github.com/codahale/chacha20poly1305"
"github.com/roasbeef/btcutil"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
) )
// Conn... // Conn...

@ -5,10 +5,10 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/fastsha256" "github.com/btcsuite/fastsha256"
"github.com/codahale/chacha20poly1305" "github.com/codahale/chacha20poly1305"
"github.com/roasbeef/btcd/btcec"
"github.com/roasbeef/btcutil"
) )
// Listener... // Listener...

@ -8,9 +8,9 @@ import (
"net" "net"
"strings" "strings"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// lnAddr... // lnAddr...

@ -6,7 +6,7 @@ import (
"sync" "sync"
"testing" "testing"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
) )
func TestConnectionCorrectness(t *testing.T) { func TestConnectionCorrectness(t *testing.T) {

@ -2,15 +2,15 @@ package lnstate
import ( import (
"fmt" "fmt"
//"github.com/btcsuite/btcd/btcec" //"github.com/roasbeef/btcd/btcec"
//"atomic" //"atomic"
"sync" "sync"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/shachain" "github.com/lightningnetwork/lnd/shachain"
"github.com/roasbeef/btcd/wire"
"github.com/roasbeef/btcutil"
) )
//This is a state machine which allows for simultaneous high-volume //This is a state machine which allows for simultaneous high-volume

@ -8,11 +8,11 @@ import (
"github.com/lightningnetwork/lnd/chainntfs" "github.com/lightningnetwork/lnd/chainntfs"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/txsort" "github.com/roasbeef/btcutil/txsort"
) )
const ( const (

@ -3,10 +3,10 @@ package lnwallet
import ( import (
"encoding/hex" "encoding/hex"
"github.com/btcsuite/btcd/btcjson" "github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/coinset" "github.com/roasbeef/btcutil/coinset"
) )
// lnCoin represents a single unspet output. Its purpose is to convert a regular // lnCoin represents a single unspet output. Its purpose is to convert a regular

@ -3,8 +3,8 @@ package lnwallet
import ( import (
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
var ( var (
@ -37,9 +37,9 @@ type Config struct {
DebugLevel string DebugLevel string
RpcHost string // localhost:18334 RpcHost string // localhost:18334
RpcUser string RpcUser string
RpcPass string RpcPass string
RpcNoTLS bool RpcNoTLS bool
RPCCert string RPCCert string

@ -1,9 +1,9 @@
package lnwallet package lnwallet
import ( import (
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// WalletController defines an abstract interface for controlling a local Pure // WalletController defines an abstract interface for controlling a local Pure

@ -5,7 +5,7 @@ import (
"io" "io"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
btcwallet "github.com/btcsuite/btcwallet/wallet" btcwallet "github.com/roasbeef/btcwallet/wallet"
) )
// log is a logger that is initialized with no output filters. This // log is a logger that is initialized with no output filters. This

@ -5,9 +5,9 @@ import (
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
// ChannelContribution is the primary constituent of the funding workflow within // ChannelContribution is the primary constituent of the funding workflow within

@ -4,11 +4,11 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/fastsha256" "github.com/btcsuite/fastsha256"
"github.com/roasbeef/btcd/btcec"
"github.com/roasbeef/btcd/txscript"
"github.com/roasbeef/btcd/wire"
"github.com/roasbeef/btcutil"
) )
var ( var (

@ -1,28 +1,11 @@
// Based on: https://github.com/btcsuite/btcwallet/blob/master/walletsetup.go
/*
* Copyright (c) 2014-2015 The btcsuite developers
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package lnwallet package lnwallet
import ( import (
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
_ "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

@ -8,22 +8,22 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/btcsuite/btcd/btcjson"
"github.com/lightningnetwork/lnd/chainntfs" "github.com/lightningnetwork/lnd/chainntfs"
"github.com/lightningnetwork/lnd/chainntfs/btcdnotify" "github.com/lightningnetwork/lnd/chainntfs/btcdnotify"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/elkrem" "github.com/lightningnetwork/lnd/elkrem"
"github.com/roasbeef/btcd/btcjson"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcrpcclient" "github.com/roasbeef/btcrpcclient"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/coinset" "github.com/roasbeef/btcutil/coinset"
"github.com/btcsuite/btcutil/txsort" "github.com/roasbeef/btcutil/txsort"
"github.com/btcsuite/btcwallet/chain" "github.com/roasbeef/btcwallet/chain"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
btcwallet "github.com/btcsuite/btcwallet/wallet" btcwallet "github.com/roasbeef/btcwallet/wallet"
) )
const ( const (

@ -9,16 +9,16 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/roasbeef/btcd/chaincfg"
"github.com/Roasbeef/btcd/rpctest" "github.com/Roasbeef/btcd/rpctest"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/coinset" "github.com/roasbeef/btcutil/coinset"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
) )
var ( var (

@ -2,8 +2,8 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"io" "io"
) )

@ -1,7 +1,7 @@
package lnwire package lnwire
import ( import (
// "github.com/btcsuite/btcutil" // "github.com/roasbeef/btcutil"
"testing" "testing"
) )

@ -2,8 +2,8 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"io" "io"
) )

@ -1,7 +1,7 @@
package lnwire package lnwire
import ( import (
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"testing" "testing"
) )

@ -2,8 +2,8 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"io" "io"
) )

@ -1,7 +1,7 @@
package lnwire package lnwire
import ( import (
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"testing" "testing"
) )

@ -2,9 +2,9 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"io" "io"
) )

@ -1,7 +1,7 @@
package lnwire package lnwire
import ( import (
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"testing" "testing"
) )

@ -2,9 +2,9 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"io" "io"
) )

@ -1,7 +1,7 @@
package lnwire package lnwire
import ( import (
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"testing" "testing"
) )

@ -2,7 +2,7 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"io" "io"
) )

@ -2,8 +2,8 @@ package lnwire
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"io" "io"
) )

@ -4,9 +4,9 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"io" "io"
"io/ioutil" "io/ioutil"
) )

@ -3,9 +3,9 @@ package lnwire
import ( import (
"bytes" "bytes"
"encoding/hex" "encoding/hex"
"github.com/btcsuite/btcd/btcec" "github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/roasbeef/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"io/ioutil" "io/ioutil"
"reflect" "reflect"
"testing" "testing"

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
// 4-byte network + 4-byte message id + payload-length 4-byte // 4-byte network + 4-byte message id + payload-length 4-byte

@ -7,10 +7,10 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/btcsuite/btcd/wire"
"github.com/lightningnetwork/lnd/lndc" "github.com/lightningnetwork/lnd/lndc"
"github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwallet"
"github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/lnwire"
"github.com/roasbeef/btcd/wire"
) )
var ( var (

@ -6,12 +6,12 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwallet/waddrmgr"
"github.com/lightningnetwork/lnd/lndc" "github.com/lightningnetwork/lnd/lndc"
"github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnrpc"
"github.com/roasbeef/btcd/txscript"
"github.com/roasbeef/btcd/wire"
"github.com/roasbeef/btcutil"
"github.com/roasbeef/btcwallet/waddrmgr"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

@ -7,12 +7,12 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/btcsuite/btcd/btcec"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lndc" "github.com/lightningnetwork/lnd/lndc"
"github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwallet"
"github.com/roasbeef/btcd/btcec"
"github.com/btcsuite/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
) )
// server... // server...

@ -8,8 +8,8 @@ import (
"io" "io"
"sync" "sync"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
const ( const (

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/lightningnetwork/lnd/uspv" "github.com/lightningnetwork/lnd/uspv"
) )

@ -7,7 +7,7 @@ import (
"os" "os"
"sync" "sync"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
const ( const (

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/bloom" "github.com/roasbeef/btcutil/bloom"
) )
var ( var (

@ -12,9 +12,9 @@ import (
"os" "os"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/roasbeef/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
// blockchain settings. These are kindof bitcoin specific, but not contained in // blockchain settings. These are kindof bitcoin specific, but not contained in

@ -7,8 +7,8 @@ import (
"net" "net"
"os" "os"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
// OpenPV starts a // OpenPV starts a

@ -8,9 +8,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/howeyc/gopass" "github.com/howeyc/gopass"
"github.com/roasbeef/btcd/chaincfg"
"github.com/roasbeef/btcutil/hdkeychain"
"golang.org/x/crypto/nacl/secretbox" "golang.org/x/crypto/nacl/secretbox"
"golang.org/x/crypto/scrypt" "golang.org/x/crypto/scrypt"
) )

@ -3,7 +3,7 @@ package uspv
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
) )
func MakeMerkleParent(left *wire.ShaHash, right *wire.ShaHash) *wire.ShaHash { func MakeMerkleParent(left *wire.ShaHash, right *wire.ShaHash) *wire.ShaHash {

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
) )
func (s *SPVCon) incomingMessageHandler() { func (s *SPVCon) incomingMessageHandler() {

@ -6,12 +6,12 @@ import (
"log" "log"
"sort" "sort"
"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/bloom" "github.com/roasbeef/btcutil/bloom"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
"github.com/btcsuite/btcutil/txsort" "github.com/roasbeef/btcutil/txsort"
) )
func (s *SPVCon) PongBack(nonce uint64) { func (s *SPVCon) PongBack(nonce uint64) {

@ -7,13 +7,13 @@ import (
"log" "log"
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/btcsuite/btcd/wire" "github.com/roasbeef/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/roasbeef/btcutil"
"github.com/btcsuite/btcutil/bloom" "github.com/roasbeef/btcutil/bloom"
"github.com/btcsuite/btcutil/hdkeychain" "github.com/roasbeef/btcutil/hdkeychain"
) )
type TxStore struct { type TxStore struct {

@ -5,13 +5,13 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"github.com/btcsuite/btcd/blockchain" "github.com/roasbeef/btcd/blockchain"
"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/boltdb/bolt" "github.com/boltdb/bolt"
) )