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
[![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
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
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
```bash
$ go get github.com/conformal/btcchain
$ go get github.com/btcsuite/btcchain
```
## Bitcoin Chain Processing Overview
@ -77,20 +77,20 @@ is by no means exhaustive:
## Examples
* [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
attempt to attempt add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid
block is handled.
* [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
represent the target difficulty to a big integer and display it using the
typical hex notation.
* [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
compact "bits" in a block header which represent that target difficulty.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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