[NOD-176] Moved daghash from dagconfig to util (#298)

* [NOD-176] Moved daghash from dagconfig to util

* [NOD-176] Fixed order of includes with gofmt
This commit is contained in:
Svarog 2019-05-14 14:05:36 +03:00 committed by Ori Newman
parent d7a2ab52a1
commit ca0619bbcf
150 changed files with 144 additions and 144 deletions

View File

@ -24,7 +24,7 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -3,7 +3,7 @@ package blockdag
import (
"container/heap"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// baseHeap is an implementation for heap.Interface that sorts blocks by their height

View File

@ -4,7 +4,7 @@ import (
"testing"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// TestBlockHeap tests pushing, popping, and determining the length of the heap.

View File

@ -8,8 +8,8 @@ import (
"sync"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
// blockIndex provides facilities for keeping track of an in-memory index of the

View File

@ -9,7 +9,7 @@ import (
"sort"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -3,7 +3,7 @@ package blockdag
import (
"strings"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// blockSet implements a basic unsorted set of blocks

View File

@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
func TestHashes(t *testing.T) {

View File

@ -9,9 +9,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// CheckpointConfirmations is the number of blocks before the end of the current

View File

@ -17,9 +17,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
_ "github.com/daglabs/btcd/database/ffldb"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,10 +14,10 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -20,10 +20,10 @@ import (
"math/rand"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/util/txsort"
"github.com/daglabs/btcd/wire"

View File

@ -12,10 +12,10 @@ import (
"io"
"sync"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/binaryserializer"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,8 +10,8 @@ import (
"reflect"
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
// TestErrNotInDAG ensures the functions related to errNotInDAG work

View File

@ -7,7 +7,7 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/testtools"
"github.com/daglabs/btcd/blockdag"

View File

@ -9,9 +9,9 @@ import (
"io"
"math"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/txsort"
"github.com/daglabs/btcd/wire"
)

View File

@ -15,11 +15,11 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/blockdag/fullblocktests"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
_ "github.com/daglabs/btcd/database/ffldb"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -21,9 +21,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/random"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,7 +14,7 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -11,10 +11,10 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,9 +9,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/gcs"
"github.com/daglabs/btcd/util/gcs/builder"
"github.com/daglabs/btcd/wire"

View File

@ -8,9 +8,9 @@ import (
"fmt"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -7,9 +7,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/mining"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -7,8 +7,8 @@ package blockdag
import (
"math"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// MerkleTree holds the hashes of a merkle tree

View File

@ -1,7 +1,7 @@
package blockdag
import (
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// phantom calculates and returns the block's blue set, selected parent and blue score.

View File

@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/dagconfig"
)

View File

@ -8,9 +8,9 @@ import (
"fmt"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// BehaviorFlags is a bitmask defining tweaks to the normal behavior when

View File

@ -10,10 +10,10 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
_ "github.com/daglabs/btcd/database/ffldb" // blank import ffldb so that its init() function runs before tests
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -7,7 +7,7 @@ package blockdag
import (
"fmt"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// ThresholdState define the various threshold states used when voting on

View File

@ -7,7 +7,7 @@ package blockdag
import (
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// TestThresholdStateStringer tests the stringized output for the

View File

@ -7,8 +7,8 @@ import (
"io"
"sync"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -6,8 +6,8 @@ import (
"testing"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -6,7 +6,7 @@ import (
"testing"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -13,9 +13,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"
)

View File

@ -11,8 +11,8 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,7 +9,7 @@ import (
"fmt"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// This example demonstrates signing a message with a secp256k1 private key that

View File

@ -15,7 +15,7 @@ import (
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// TestDAGSvrWsNtfns tests all of the dag server websocket-specific

View File

@ -11,8 +11,8 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
const blockDbNamePrefix = "blocks"

View File

@ -12,8 +12,8 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,9 +8,9 @@ import (
"sync/atomic"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/rpcclient"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -21,11 +21,11 @@ import (
"github.com/btcsuite/go-socks/socks"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/mempool"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/network"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/version"

View File

@ -8,7 +8,7 @@ import (
"math"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -13,7 +13,7 @@ import (
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/hdkeychain"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -7,7 +7,7 @@ package dagconfig
import (
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
func TestNewHashFromStr(t *testing.T) {

View File

@ -9,8 +9,8 @@ import (
"errors"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
// fetchBlockCmd defines the configuration options for the fetchblock command.

View File

@ -10,8 +10,8 @@ import (
"strconv"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
// blockRegionCmd defines the configuration options for the fetchblockregion

View File

@ -7,8 +7,8 @@ package main
import (
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
)
// headersCmd defines the configuration options for the loadheaders command.

View File

@ -18,8 +18,8 @@ import (
"sync"
"syscall"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,9 +8,9 @@ import (
"testing"
"bou.ke/monkey"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -22,10 +22,10 @@ import (
"github.com/btcsuite/goleveldb/leveldb/iterator"
"github.com/btcsuite/goleveldb/leveldb/opt"
dbutil "github.com/btcsuite/goleveldb/leveldb/util"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/database/internal/treap"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -7,9 +7,9 @@ import (
"testing"
"bou.ke/monkey"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -26,9 +26,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,8 +8,8 @@
package database
import (
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// Cursor represents a cursor over key/value pairs and nested buckets of a

View File

@ -11,7 +11,7 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -13,7 +13,7 @@ import (
"sync/atomic"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/panics"
"github.com/daglabs/btcd/connmgr"

View File

@ -15,8 +15,8 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/integration/rpctest"
"github.com/daglabs/btcd/util/daghash"
)
const (

View File

@ -17,10 +17,10 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/integration/rpctest"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -13,9 +13,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -12,10 +12,10 @@ import (
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/rpcclient"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/hdkeychain"
"github.com/daglabs/btcd/wire"
)

View File

@ -16,9 +16,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/rpcclient"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,9 +14,9 @@ import (
"time"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,7 +8,7 @@ import (
"reflect"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// JoinType is an enum representing a particular type of "node join". A node

View File

@ -17,8 +17,8 @@ import (
"sync"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// TODO incorporate Alex Morcos' modifications to Gavin's initial model

View File

@ -10,9 +10,9 @@ import (
"testing"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/mining"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -16,11 +16,11 @@ import (
"github.com/daglabs/btcd/blockdag/indexers"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/mining"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"
)

View File

@ -24,9 +24,9 @@ import (
"github.com/daglabs/btcd/blockdag/indexers"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,9 +10,9 @@ import (
"time"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,9 +14,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/mining"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/random"
"github.com/daglabs/btcd/wire"
)

View File

@ -12,9 +12,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/random"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"

View File

@ -15,8 +15,8 @@ import (
"bou.ke/monkey"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
"github.com/daglabs/btcd/util"

View File

@ -12,9 +12,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,9 +10,9 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/rpcclient"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,9 +9,9 @@ import (
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,11 +14,11 @@ import (
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/mempool"
peerpkg "github.com/daglabs/btcd/peer"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,9 +10,9 @@ import (
"time"
"github.com/btcsuite/btclog"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/panics"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,7 +9,7 @@ import (
"fmt"
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -23,8 +23,8 @@ import (
"github.com/btcsuite/go-socks/socks"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
"github.com/davecgh/go-spew/spew"
)

View File

@ -14,8 +14,8 @@ import (
"github.com/btcsuite/go-socks/socks"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/peer"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -11,7 +11,7 @@ import (
"encoding/json"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -13,8 +13,8 @@ import (
"fmt"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,8 +10,8 @@ import (
"errors"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
)
// FutureGenerateResult is a future promise to deliver the result of a

View File

@ -14,8 +14,8 @@ import (
"time"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,8 +10,8 @@ import (
"encoding/json"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,8 +9,8 @@ import (
"strconv"
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -29,7 +29,6 @@ import (
"github.com/daglabs/btcd/config"
"github.com/daglabs/btcd/connmgr"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/mempool"
@ -39,6 +38,7 @@ import (
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/bloom"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/version"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,12 +8,12 @@ import (
"sync/atomic"
"github.com/daglabs/btcd/blockdag"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/mempool"
"github.com/daglabs/btcd/netsync"
"github.com/daglabs/btcd/peer"
"github.com/daglabs/btcd/server/p2p"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -35,7 +35,6 @@ import (
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/config"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/database"
"github.com/daglabs/btcd/logger"
"github.com/daglabs/btcd/mempool"
@ -46,6 +45,7 @@ import (
"github.com/daglabs/btcd/server/serverutils"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/fs"
"github.com/daglabs/btcd/util/network"
"github.com/daglabs/btcd/util/random"

View File

@ -28,9 +28,9 @@ import (
"github.com/daglabs/btcd/btcjson"
"github.com/daglabs/btcd/config"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,7 +8,7 @@ import (
"testing"
"bou.ke/monkey"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -10,9 +10,9 @@ import (
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -15,7 +15,7 @@ import (
"golang.org/x/crypto/ripemd160"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -14,7 +14,7 @@ import (
"strings"
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,7 +9,7 @@ import (
"encoding/binary"
"fmt"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -8,7 +8,7 @@ import (
"sync"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// sigCacheEntry represents an entry in the SigCache. Entries within the

View File

@ -9,7 +9,7 @@ import (
"testing"
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
)
// genRandomSig returns a random message, a signature of the message under the

View File

@ -11,8 +11,8 @@ import (
"github.com/daglabs/btcd/btcec"
"github.com/daglabs/btcd/dagconfig"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -11,7 +11,7 @@ import (
"math"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -12,8 +12,8 @@ import (
"testing"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/util/subnetworkid"
"github.com/daglabs/btcd/wire"
"github.com/davecgh/go-spew/spew"

View File

@ -9,8 +9,8 @@ import (
"math/rand"
"time"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util/bloom"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,9 +9,9 @@ import (
"math"
"sync"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/txscript"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

View File

@ -9,9 +9,9 @@ import (
"encoding/hex"
"testing"
"github.com/daglabs/btcd/dagconfig/daghash"
"github.com/daglabs/btcd/util"
"github.com/daglabs/btcd/util/bloom"
"github.com/daglabs/btcd/util/daghash"
"github.com/daglabs/btcd/wire"
)

Some files were not shown because too many files have changed in this diff Show More