Update btcdb import paths to new location.

This commit is contained in:
Dave Collins 2015-01-16 18:26:00 -06:00
parent 596fdf8327
commit bad82efd8c
16 changed files with 28 additions and 28 deletions

View file

@ -13,30 +13,30 @@ transactions.
## 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/btcdb) (http://godoc.org/github.com/btcsuite/btcdb)
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 installing this package by using the GoDoc site
[here](http://godoc.org/github.com/conformal/btcdb). [here](http://godoc.org/github.com/btcsuite/btcdb).
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/btcdb http://localhost:6060/pkg/github.com/btcsuite/btcdb
## Installation ## Installation
```bash ```bash
$ go get github.com/conformal/btcdb $ go get github.com/btcsuite/btcdb
``` ```
## Examples ## Examples
* [CreateDB Example] * [CreateDB Example]
(http://godoc.org/github.com/conformal/btcdb#example-CreateDB) (http://godoc.org/github.com/btcsuite/btcdb#example-CreateDB)
Demonstrates creating a new database and inserting the genesis block into it. Demonstrates creating a new database and inserting the genesis block into it.
* [NewestSha Example] * [NewestSha Example]
(http://godoc.org/github.com/conformal/btcdb#example-Db--NewestSha) (http://godoc.org/github.com/btcsuite/btcdb#example-Db--NewestSha)
Demonstrates querying the database for the most recent best block height and Demonstrates querying the database for the most recent best block height and
hash. hash.

View file

@ -14,12 +14,12 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/ldb"
_ "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/btcdb"
_ "github.com/conformal/btcdb/ldb"
_ "github.com/conformal/btcdb/memdb"
) )
var ( var (

View file

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/conformal/btcdb" "github.com/btcsuite/btcdb"
) )
var ( var (

View file

@ -7,10 +7,10 @@ package btcdb_test
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/memdb"
"github.com/btcsuite/btcnet" "github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/memdb"
) )
// This example demonstrates creating a new database and inserting the genesis // This example demonstrates creating a new database and inserting the genesis
@ -20,8 +20,8 @@ func ExampleCreateDB() {
// Ordinarily this would be whatever driver(s) your application // Ordinarily this would be whatever driver(s) your application
// requires. // requires.
// import ( // import (
// "github.com/conformal/btcdb" // "github.com/btcsuite/btcdb"
// _ "github.com/conformal/btcdb/memdb" // _ "github.com/btcsuite/btcdb/memdb"
// ) // )
// Create a database and schedule it to be closed on exit. This example // Create a database and schedule it to be closed on exit. This example

View file

@ -8,9 +8,9 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
) )

View file

@ -8,10 +8,10 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/btcsuite/goleveldb/leveldb" "github.com/btcsuite/goleveldb/leveldb"
"github.com/conformal/btcdb"
) )
// FetchBlockBySha - return a btcutil Block // FetchBlockBySha - return a btcutil Block

View file

@ -8,8 +8,8 @@ import (
"os" "os"
"testing" "testing"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
) )
// we need to test for empty databas and make certain it returns proper value // we need to test for empty databas and make certain it returns proper value

View file

@ -10,9 +10,9 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
) )
func Test_dupTx(t *testing.T) { func Test_dupTx(t *testing.T) {

View file

@ -10,10 +10,10 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/ldb"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/ldb"
) )
var tstBlocks []*btcutil.Block var tstBlocks []*btcutil.Block

View file

@ -7,8 +7,8 @@ package ldb
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
) )
// FetchSha returns the datablock and pver for the given ShaHash. // FetchSha returns the datablock and pver for the given ShaHash.

View file

@ -11,12 +11,12 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/btcsuite/goleveldb/leveldb" "github.com/btcsuite/goleveldb/leveldb"
"github.com/btcsuite/goleveldb/leveldb/opt" "github.com/btcsuite/goleveldb/leveldb/opt"
"github.com/conformal/btcdb"
) )
const ( const (

View file

@ -14,10 +14,10 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/btcsuite/btcdb"
"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/btcdb"
) )
var network = btcwire.MainNet var network = btcwire.MainNet

View file

@ -8,9 +8,9 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/btcsuite/goleveldb/leveldb" "github.com/btcsuite/goleveldb/leveldb"
"github.com/conformal/btcdb"
) )
type txUpdateObj struct { type txUpdateObj struct {

View file

@ -7,8 +7,8 @@ package memdb
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
"github.com/conformal/btcdb"
) )
var log = btclog.Disabled var log = btclog.Disabled

View file

@ -10,9 +10,9 @@ import (
"math" "math"
"sync" "sync"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire" "github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
) )
// Errors that the various database functions may return. // Errors that the various database functions may return.

View file

@ -8,11 +8,11 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcdb"
"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/btcdb"
"github.com/conformal/btcdb/memdb"
) )
// TestClosed ensure calling the interface functions on a closed database // TestClosed ensure calling the interface functions on a closed database