diff --git a/README.md b/README.md index f4442229..432097da 100644 --- a/README.md +++ b/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. diff --git a/common_test.go b/common_test.go index 24b18f0a..76762664 100644 --- a/common_test.go +++ b/common_test.go @@ -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 ( diff --git a/db_test.go b/db_test.go index 11baa7e6..d96a7e8a 100644 --- a/db_test.go +++ b/db_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/conformal/btcdb" + "github.com/btcsuite/btcdb" ) var ( diff --git a/example_test.go b/example_test.go index f2942c17..f50d7422 100644 --- a/example_test.go +++ b/example_test.go @@ -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 diff --git a/interface_test.go b/interface_test.go index 5a365fb5..8127b971 100644 --- a/interface_test.go +++ b/interface_test.go @@ -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" ) diff --git a/ldb/block.go b/ldb/block.go index a5a9d640..c5b4aa23 100644 --- a/ldb/block.go +++ b/ldb/block.go @@ -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 diff --git a/ldb/boundary_test.go b/ldb/boundary_test.go index 523267ea..d3f10893 100644 --- a/ldb/boundary_test.go +++ b/ldb/boundary_test.go @@ -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 diff --git a/ldb/dup_test.go b/ldb/dup_test.go index b3256602..10557203 100644 --- a/ldb/dup_test.go +++ b/ldb/dup_test.go @@ -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) { diff --git a/ldb/insertremove_test.go b/ldb/insertremove_test.go index af83ba66..dfa68b92 100644 --- a/ldb/insertremove_test.go +++ b/ldb/insertremove_test.go @@ -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 diff --git a/ldb/internal_test.go b/ldb/internal_test.go index 8fe64ff1..f0cf74bc 100644 --- a/ldb/internal_test.go +++ b/ldb/internal_test.go @@ -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. diff --git a/ldb/leveldb.go b/ldb/leveldb.go index 20892c35..64b72e57 100644 --- a/ldb/leveldb.go +++ b/ldb/leveldb.go @@ -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 ( diff --git a/ldb/operational_test.go b/ldb/operational_test.go index 2e47a10c..bee33101 100644 --- a/ldb/operational_test.go +++ b/ldb/operational_test.go @@ -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 diff --git a/ldb/tx.go b/ldb/tx.go index afe06d57..8d28fed6 100644 --- a/ldb/tx.go +++ b/ldb/tx.go @@ -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 { diff --git a/memdb/driver.go b/memdb/driver.go index bbd31d66..cf4dddd6 100644 --- a/memdb/driver.go +++ b/memdb/driver.go @@ -7,8 +7,8 @@ package memdb import ( "fmt" + "github.com/btcsuite/btcdb" "github.com/btcsuite/btclog" - "github.com/conformal/btcdb" ) var log = btclog.Disabled diff --git a/memdb/memdb.go b/memdb/memdb.go index 173c403d..9294309d 100644 --- a/memdb/memdb.go +++ b/memdb/memdb.go @@ -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. diff --git a/memdb/memdb_test.go b/memdb/memdb_test.go index 4879c5b9..de8701b3 100644 --- a/memdb/memdb_test.go +++ b/memdb/memdb_test.go @@ -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