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
[![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
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
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
```bash
$ go get github.com/conformal/btcdb
$ go get github.com/btcsuite/btcdb
```
## Examples
* [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.
* [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
hash.

View file

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

View file

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

View file

@ -7,10 +7,10 @@ package btcdb_test
import (
"fmt"
"github.com/btcsuite/btcdb"
_ "github.com/btcsuite/btcdb/memdb"
"github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil"
"github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/memdb"
)
// 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
// requires.
// import (
// "github.com/conformal/btcdb"
// _ "github.com/conformal/btcdb/memdb"
// "github.com/btcsuite/btcdb"
// _ "github.com/btcsuite/btcdb/memdb"
// )
// Create a database and schedule it to be closed on exit. This example

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -14,10 +14,10 @@ import (
"strings"
"testing"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
)
var network = btcwire.MainNet

View file

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

View file

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

View file

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

View file

@ -8,11 +8,11 @@ import (
"reflect"
"testing"
"github.com/btcsuite/btcdb"
"github.com/btcsuite/btcdb/memdb"
"github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwire"
"github.com/conformal/btcdb"
"github.com/conformal/btcdb/memdb"
)
// TestClosed ensure calling the interface functions on a closed database