Update btcchain import paths to new location.

This commit is contained in:
Dave Collins 2015-01-16 18:40:47 -06:00
parent 14056ad2ca
commit 3951e75a3f
12 changed files with 18 additions and 18 deletions

View file

@ -23,20 +23,20 @@ handle processing of blocks into the bitcoin block chain.
## Documentation ## Documentation
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg] [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg]
(http://godoc.org/github.com/conformal/btcchain) (http://godoc.org/github.com/btcsuite/btcchain)
Full `go doc` style documentation for the project can be viewed online without Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here: installing this package by using the GoDoc site here:
http://godoc.org/github.com/conformal/btcchain http://godoc.org/github.com/btcsuite/btcchain
You can also view the documentation locally once the package is installed with You can also view the documentation locally once the package is installed with
the `godoc` tool by running `godoc -http=":6060"` and pointing your browser to the `godoc` tool by running `godoc -http=":6060"` and pointing your browser to
http://localhost:6060/pkg/github.com/conformal/btcchain http://localhost:6060/pkg/github.com/btcsuite/btcchain
## Installation ## Installation
```bash ```bash
$ go get github.com/conformal/btcchain $ go get github.com/btcsuite/btcchain
``` ```
## Bitcoin Chain Processing Overview ## Bitcoin Chain Processing Overview
@ -77,20 +77,20 @@ is by no means exhaustive:
## Examples ## Examples
* [ProcessBlock Example] * [ProcessBlock Example]
(http://godoc.org/github.com/conformal/btcchain#example-BlockChain-ProcessBlock) (http://godoc.org/github.com/btcsuite/btcchain#example-BlockChain-ProcessBlock)
Demonstrates how to create a new chain instance and use ProcessBlock to Demonstrates how to create a new chain instance and use ProcessBlock to
attempt to attempt add a block to the chain. This example intentionally attempt to attempt add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid attempts to insert a duplicate genesis block to illustrate how an invalid
block is handled. block is handled.
* [CompactToBig Example] * [CompactToBig Example]
(http://godoc.org/github.com/conformal/btcchain#example-CompactToBig) (http://godoc.org/github.com/btcsuite/btcchain#example-CompactToBig)
Demonstrates how to convert the compact "bits" in a block header which Demonstrates how to convert the compact "bits" in a block header which
represent the target difficulty to a big integer and display it using the represent the target difficulty to a big integer and display it using the
typical hex notation. typical hex notation.
* [BigToCompact Example] * [BigToCompact Example]
(http://godoc.org/github.com/conformal/btcchain#example-BigToCompact) (http://godoc.org/github.com/btcsuite/btcchain#example-BigToCompact)
Demonstrates how to convert how to convert a target difficulty into the Demonstrates how to convert how to convert a target difficulty into the
compact "bits" in a block header which represent that target difficulty. compact "bits" in a block header which represent that target difficulty.

View file

@ -7,10 +7,10 @@ package btcchain_test
import ( import (
"testing" "testing"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcnet" "github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcchain"
) )
// TestHaveBlock tests the HaveBlock API to ensure proper functionality. // TestHaveBlock tests the HaveBlock API to ensure proper functionality.

View file

@ -13,13 +13,13 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcdb" "github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/ldb" _ "github.com/btcsuite/btcdb/ldb"
_ "github.com/btcsuite/btcdb/memdb" _ "github.com/btcsuite/btcdb/memdb"
"github.com/btcsuite/btcnet" "github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcchain"
) )
// testDbType is the database backend type to use for the tests. // testDbType is the database backend type to use for the tests.

View file

@ -8,7 +8,7 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/conformal/btcchain" "github.com/btcsuite/btcchain"
) )
func TestBigToCompact(t *testing.T) { func TestBigToCompact(t *testing.T) {

View file

@ -7,7 +7,7 @@ package btcchain_test
import ( import (
"testing" "testing"
"github.com/conformal/btcchain" "github.com/btcsuite/btcchain"
) )
// TestErrorCodeStringer tests the stringized output for the ErrorCode type. // TestErrorCodeStringer tests the stringized output for the ErrorCode type.

View file

@ -8,11 +8,11 @@ import (
"fmt" "fmt"
"math/big" "math/big"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcdb" "github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/memdb" _ "github.com/btcsuite/btcdb/memdb"
"github.com/btcsuite/btcnet" "github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/conformal/btcchain"
) )
// This example demonstrates how to create a new chain instance and use // This example demonstrates how to create a new chain instance and use

View file

@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/conformal/btcchain" "github.com/btcsuite/btcchain"
) )
// TestMedianTime tests the medianTime implementation. // TestMedianTime tests the medianTime implementation.

View file

@ -7,8 +7,8 @@ package btcchain_test
import ( import (
"testing" "testing"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/conformal/btcchain"
) )
// TestMerkle tests the BuildMerkleTreeStore API. // TestMerkle tests the BuildMerkleTreeStore API.

View file

@ -13,9 +13,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcchain"
) )
// TestReorganization loads a set of test blocks which force a chain // TestReorganization loads a set of test blocks which force a chain

View file

@ -9,7 +9,7 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/conformal/btcchain" "github.com/btcsuite/btcchain"
) )
// TestCheckBlockScripts ensures that validating the all of the scripts in a // TestCheckBlockScripts ensures that validating the all of the scripts in a

View file

@ -10,7 +10,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/conformal/btcchain" "github.com/btcsuite/btcchain"
) )
// TestTimeSorter tests the timeSorter implementation. // TestTimeSorter tests the timeSorter implementation.

View file

@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcchain"
"github.com/btcsuite/btcnet" "github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcchain"
) )
// TestCheckConnectBlock tests the CheckConnectBlock function to ensure it // TestCheckConnectBlock tests the CheckConnectBlock function to ensure it