Update btcdb import paths to new location.
This commit is contained in:
parent
596fdf8327
commit
bad82efd8c
16 changed files with 28 additions and 28 deletions
12
README.md
12
README.md
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/conformal/btcdb"
|
||||
"github.com/btcsuite/btcdb"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -7,8 +7,8 @@ package memdb
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/btcsuite/btcdb"
|
||||
"github.com/btcsuite/btclog"
|
||||
"github.com/conformal/btcdb"
|
||||
)
|
||||
|
||||
var log = btclog.Disabled
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue