Updated references.

This commit is contained in:
Stas Boutenko 2018-06-03 18:34:09 +03:00
parent 91d2c669f0
commit 2901d302f3
227 changed files with 682 additions and 682 deletions

View File

@ -3,7 +3,7 @@ btcd
[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd) [![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd)
btcd is an alternative full node bitcoin implementation written in Go (golang). btcd is an alternative full node bitcoin implementation written in Go (golang).
@ -41,7 +41,7 @@ which are both under active development.
#### Windows - MSI Available #### Windows - MSI Available
https://github.com/btcsuite/btcd/releases https://github.com/daglabs/btcd/releases
#### Linux/BSD/MacOSX/POSIX - Build from Source #### Linux/BSD/MacOSX/POSIX - Build from Source
@ -64,8 +64,8 @@ recommended that `GOPATH` is set to a directory in your home directory such as
```bash ```bash
$ go get -u github.com/Masterminds/glide $ go get -u github.com/Masterminds/glide
$ git clone https://github.com/btcsuite/btcd $GOPATH/src/github.com/btcsuite/btcd $ git clone https://github.com/daglabs/btcd $GOPATH/src/github.com/daglabs/btcd
$ cd $GOPATH/src/github.com/btcsuite/btcd $ cd $GOPATH/src/github.com/daglabs/btcd
$ glide install $ glide install
$ go install . ./cmd/... $ go install . ./cmd/...
``` ```
@ -85,7 +85,7 @@ Install a newer MSI
- Run the following commands to update btcd, all dependencies, and install it: - Run the following commands to update btcd, all dependencies, and install it:
```bash ```bash
$ cd $GOPATH/src/github.com/btcsuite/btcd $ cd $GOPATH/src/github.com/daglabs/btcd
$ git pull && glide install $ git pull && glide install
$ go install . ./cmd/... $ go install . ./cmd/...
``` ```
@ -114,12 +114,12 @@ $ ./btcd
## Issue Tracker ## Issue Tracker
The [integrated github issue tracker](https://github.com/btcsuite/btcd/issues) The [integrated github issue tracker](https://github.com/daglabs/btcd/issues)
is used for this project. is used for this project.
## Documentation ## Documentation
The documentation is a work-in-progress. It is located in the [docs](https://github.com/btcsuite/btcd/tree/master/docs) folder. The documentation is a work-in-progress. It is located in the [docs](https://github.com/daglabs/btcd/tree/master/docs) folder.
## GPG Verification Key ## GPG Verification Key

View File

@ -22,8 +22,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// AddrManager provides a concurrency safe address manager for caching potential // AddrManager provides a concurrency safe address manager for caching potential

View File

@ -12,8 +12,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/addrmgr" "github.com/daglabs/btcd/addrmgr"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// naTest is used to describe a test to be performed against the NetAddressKey // naTest is used to describe a test to be performed against the NetAddressKey

View File

@ -7,7 +7,7 @@ package addrmgr
import ( import (
"time" "time"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
func TstKnownAddressIsBad(ka *KnownAddress) bool { func TstKnownAddressIsBad(ka *KnownAddress) bool {

View File

@ -7,7 +7,7 @@ package addrmgr
import ( import (
"time" "time"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// KnownAddress tracks information about a known network address that is used // KnownAddress tracks information about a known network address that is used

View File

@ -9,8 +9,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/addrmgr" "github.com/daglabs/btcd/addrmgr"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
func TestChance(t *testing.T) { func TestChance(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
var ( var (

View File

@ -8,8 +8,8 @@ import (
"net" "net"
"testing" "testing"
"github.com/btcsuite/btcd/addrmgr" "github.com/daglabs/btcd/addrmgr"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// TestIPTypes ensures the various functions which determine the type of an IP // TestIPTypes ensures the various functions which determine the type of an IP

View File

@ -3,7 +3,7 @@ blockchain
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/blockchain) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/blockchain)
Package blockchain implements bitcoin block handling and chain selection rules. Package blockchain implements bitcoin block handling and chain selection rules.
The test coverage is currently only around 60%, but will be increasing over The test coverage is currently only around 60%, but will be increasing over
@ -21,7 +21,7 @@ block chain.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/blockchain $ go get -u github.com/daglabs/btcd/blockchain
``` ```
## Bitcoin Chain Processing Overview ## Bitcoin Chain Processing Overview
@ -61,18 +61,18 @@ is by no means exhaustive:
## Examples ## Examples
* [ProcessBlock Example](http://godoc.org/github.com/btcsuite/btcd/blockchain#example-BlockChain-ProcessBlock) * [ProcessBlock Example](http://godoc.org/github.com/daglabs/btcd/blockchain#example-BlockChain-ProcessBlock)
Demonstrates how to create a new chain instance and use ProcessBlock to Demonstrates how to create a new chain instance and use ProcessBlock to
attempt to add a block to the chain. This example intentionally attempt to add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid attempts to insert a duplicate genesis block to illustrate how an invalid
block is handled. block is handled.
* [CompactToBig Example](http://godoc.org/github.com/btcsuite/btcd/blockchain#example-CompactToBig) * [CompactToBig Example](http://godoc.org/github.com/daglabs/btcd/blockchain#example-CompactToBig)
Demonstrates how to convert the compact "bits" in a block header which 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 represent the target difficulty to a big integer and display it using the
typical hex notation. typical hex notation.
* [BigToCompact Example](http://godoc.org/github.com/btcsuite/btcd/blockchain#example-BigToCompact) * [BigToCompact Example](http://godoc.org/github.com/daglabs/btcd/blockchain#example-BigToCompact)
Demonstrates how to convert a target difficulty into the Demonstrates how to convert a target difficulty into the
compact "bits" in a block header which represent that target difficulty. compact "bits" in a block header which represent that target difficulty.

View File

@ -7,8 +7,8 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// maybeAcceptBlock potentially accepts a block into the block chain and, if // maybeAcceptBlock potentially accepts a block into the block chain and, if

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"testing" "testing"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase // BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase

View File

@ -10,10 +10,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// blockStatus is a bit field representing the validation state of the block. // blockStatus is a bit field representing the validation state of the block.

View File

@ -10,12 +10,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -9,10 +9,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// TestHaveBlock tests the HaveBlock API to ensure proper functionality. // TestHaveBlock tests the HaveBlock API to ensure proper functionality.

View File

@ -12,10 +12,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -11,8 +11,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// TestErrNotInMainChain ensures the functions related to errNotInMainChain work // TestErrNotInMainChain ensures the functions related to errNotInMainChain work

View File

@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// testNoncePrng provides a deterministic prng for the nonce in generated fake // testNoncePrng provides a deterministic prng for the nonce in generated fake

View File

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// CheckpointConfirmations is the number of blocks before the end of the current // CheckpointConfirmations is the number of blocks before the end of the current

View File

@ -14,13 +14,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -5,8 +5,8 @@
package blockchain package blockchain
import ( import (
"github.com/btcsuite/btcd/btcec" "github.com/daglabs/btcd/btcec"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
) )
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@ import (
"math/big" "math/big"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
) )
var ( var (

View File

@ -10,11 +10,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// This example demonstrates how to create a new chain instance and use // This example demonstrates how to create a new chain instance and use

View File

@ -12,15 +12,15 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/blockchain/fullblocktests" "github.com/daglabs/btcd/blockchain/fullblocktests"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -3,7 +3,7 @@ fullblocktests
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/blockchain/fullblocktests) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/blockchain/fullblocktests)
Package fullblocktests provides a set of full block tests to be used for testing Package fullblocktests provides a set of full block tests to be used for testing
the consensus validation rules. The tests are intended to be flexible enough to the consensus validation rules. The tests are intended to be flexible enough to
@ -20,7 +20,7 @@ of blocks that exercise the consensus validation rules.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/blockchain/fullblocktests $ go get -u github.com/daglabs/btcd/blockchain/fullblocktests
``` ```
## License ## License

View File

@ -18,13 +18,13 @@ import (
"runtime" "runtime"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/btcec" "github.com/daglabs/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -9,9 +9,9 @@ import (
"math/big" "math/big"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// newHashFromStr converts the passed big-endian hex string into a // newHashFromStr converts the passed big-endian hex string into a

View File

@ -3,7 +3,7 @@ indexers
[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd) [![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/btcsuite/btcd/blockchain/indexers?status.png)](http://godoc.org/github.com/btcsuite/btcd/blockchain/indexers) [![GoDoc](https://godoc.org/github.com/daglabs/btcd/blockchain/indexers?status.png)](http://godoc.org/github.com/daglabs/btcd/blockchain/indexers)
Package indexers implements optional block chain indexes. Package indexers implements optional block chain indexes.
@ -23,7 +23,7 @@ via an RPC interface.
## Installation ## Installation
```bash ```bash
$ go get -u github.com/btcsuite/btcd/blockchain/indexers $ go get -u github.com/daglabs/btcd/blockchain/indexers
``` ```
## License ## License

View File

@ -9,13 +9,13 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -9,7 +9,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// addrIndexBucket provides a mock address index database bucket by implementing // addrIndexBucket provides a mock address index database bucket by implementing

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// blockProgressLogger provides periodic logging for other services in order // blockProgressLogger provides periodic logging for other services in order

View File

@ -7,14 +7,14 @@ package indexers
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
"github.com/btcsuite/btcutil/gcs" "github.com/daglabs/btcutil/gcs"
"github.com/btcsuite/btcutil/gcs/builder" "github.com/daglabs/btcutil/gcs/builder"
) )
const ( const (

View File

@ -11,9 +11,9 @@ import (
"encoding/binary" "encoding/binary"
"errors" "errors"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
var ( var (

View File

@ -8,11 +8,11 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
var ( var (

View File

@ -8,11 +8,11 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -9,9 +9,9 @@ import (
"fmt" "fmt"
"math" "math"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"testing" "testing"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// TestMerkle tests the BuildMerkleTreeStore API. // TestMerkle tests the BuildMerkleTreeStore API.

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
) )
// TestNotifications ensures that notification callbacks are fired on events. // TestNotifications ensures that notification callbacks are fired on events.

View File

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// BehaviorFlags is a bitmask defining tweaks to the normal behavior when // BehaviorFlags is a bitmask defining tweaks to the normal behavior when

View File

@ -10,9 +10,9 @@ import (
"runtime" "runtime"
"time" "time"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// txValidateItem holds a transaction along with which input to validate. // txValidateItem holds a transaction along with which input to validate.

View File

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

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
) )
// ThresholdState define the various threshold states used when voting on // ThresholdState define the various threshold states used when voting on

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
) )
// TestThresholdStateStringer tests the stringized output for the // TestThresholdStateStringer tests the stringized output for the

View File

@ -11,9 +11,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
const ( const (

View File

@ -7,11 +7,11 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// txoFlags is a bitmask defining additional information and state for a // txoFlags is a bitmask defining additional information and state for a

View File

@ -11,11 +11,11 @@ import (
"math/big" "math/big"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// TestSequenceLocksActive tests the SequenceLockActive function to ensure it // TestSequenceLocksActive tests the SequenceLockActive function to ensure it

View File

@ -7,7 +7,7 @@ package blockchain
import ( import (
"math" "math"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
) )
const ( const (

View File

@ -7,9 +7,9 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/txscript" "github.com/daglabs/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
const ( const (

View File

@ -15,9 +15,9 @@ import (
"runtime/debug" "runtime/debug"
"runtime/pprof" "runtime/pprof"
"github.com/btcsuite/btcd/blockchain/indexers" "github.com/daglabs/btcd/blockchain/indexers"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/limits" "github.com/daglabs/btcd/limits"
) )
const ( const (

View File

@ -3,7 +3,7 @@ btcec
[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcec) [![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcec)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/btcsuite/btcd/btcec?status.png)](http://godoc.org/github.com/btcsuite/btcd/btcec) [![GoDoc](https://godoc.org/github.com/daglabs/btcd/btcec?status.png)](http://godoc.org/github.com/daglabs/btcd/btcec)
Package btcec implements elliptic curve cryptography needed for working with Package btcec implements elliptic curve cryptography needed for working with
Bitcoin (secp256k1 only for now). It is designed so that it may be used with the Bitcoin (secp256k1 only for now). It is designed so that it may be used with the
@ -20,24 +20,24 @@ use secp256k1 elliptic curve cryptography.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/btcec $ go get -u github.com/daglabs/btcd/btcec
``` ```
## Examples ## Examples
* [Sign Message](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--SignMessage) * [Sign Message](http://godoc.org/github.com/daglabs/btcd/btcec#example-package--SignMessage)
Demonstrates signing a message with a secp256k1 private key that is first Demonstrates signing a message with a secp256k1 private key that is first
parsed form raw bytes and serializing the generated signature. parsed form raw bytes and serializing the generated signature.
* [Verify Signature](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--VerifySignature) * [Verify Signature](http://godoc.org/github.com/daglabs/btcd/btcec#example-package--VerifySignature)
Demonstrates verifying a secp256k1 signature against a public key that is Demonstrates verifying a secp256k1 signature against a public key that is
first parsed from raw bytes. The signature is also parsed from raw bytes. first parsed from raw bytes. The signature is also parsed from raw bytes.
* [Encryption](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--EncryptMessage) * [Encryption](http://godoc.org/github.com/daglabs/btcd/btcec#example-package--EncryptMessage)
Demonstrates encrypting a message for a public key that is first parsed from Demonstrates encrypting a message for a public key that is first parsed from
raw bytes, then decrypting it using the corresponding private key. raw bytes, then decrypting it using the corresponding private key.
* [Decryption](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--DecryptMessage) * [Decryption](http://godoc.org/github.com/daglabs/btcd/btcec#example-package--DecryptMessage)
Demonstrates decrypting a message using a private key that is first parsed Demonstrates decrypting a message using a private key that is first parsed
from raw bytes. from raw bytes.

View File

@ -8,8 +8,8 @@ import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/daglabs/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
) )
// This example demonstrates signing a message with a secp256k1 private key that // This example demonstrates signing a message with a secp256k1 private key that

View File

@ -17,7 +17,7 @@ import (
"log" "log"
"os" "os"
"github.com/btcsuite/btcd/btcec" "github.com/daglabs/btcd/btcec"
) )
func main() { func main() {

View File

@ -3,7 +3,7 @@ btcjson
[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd) [![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/btcjson) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/btcjson)
Package btcjson implements concrete types for marshalling to and from the Package btcjson implements concrete types for marshalling to and from the
bitcoin JSON-RPC API. A comprehensive suite of tests is provided to ensure bitcoin JSON-RPC API. A comprehensive suite of tests is provided to ensure
@ -25,22 +25,22 @@ ints, etc) to higher-level types with many nice and useful properties.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/btcjson $ go get -u github.com/daglabs/btcd/btcjson
``` ```
## Examples ## Examples
* [Marshal Command](http://godoc.org/github.com/btcsuite/btcd/btcjson#example-MarshalCmd) * [Marshal Command](http://godoc.org/github.com/daglabs/btcd/btcjson#example-MarshalCmd)
Demonstrates how to create and marshal a command into a JSON-RPC request. Demonstrates how to create and marshal a command into a JSON-RPC request.
* [Unmarshal Command](http://godoc.org/github.com/btcsuite/btcd/btcjson#example-UnmarshalCmd) * [Unmarshal Command](http://godoc.org/github.com/daglabs/btcd/btcjson#example-UnmarshalCmd)
Demonstrates how to unmarshal a JSON-RPC request and then unmarshal the Demonstrates how to unmarshal a JSON-RPC request and then unmarshal the
concrete request into a concrete command. concrete request into a concrete command.
* [Marshal Response](http://godoc.org/github.com/btcsuite/btcd/btcjson#example-MarshalResponse) * [Marshal Response](http://godoc.org/github.com/daglabs/btcd/btcjson#example-MarshalResponse)
Demonstrates how to marshal a JSON-RPC response. Demonstrates how to marshal a JSON-RPC response.
* [Unmarshal Response](http://godoc.org/github.com/btcsuite/btcd/btcjson#example-package--UnmarshalResponse) * [Unmarshal Response](http://godoc.org/github.com/daglabs/btcd/btcjson#example-package--UnmarshalResponse)
Demonstrates how to unmarshal a JSON-RPC response and then unmarshal the Demonstrates how to unmarshal a JSON-RPC response and then unmarshal the
result field in the response to a concrete type. result field in the response to a concrete type.

View File

@ -12,7 +12,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestBtcdExtCmds tests all of the btcd extended commands marshal and unmarshal // TestBtcdExtCmds tests all of the btcd extended commands marshal and unmarshal

View File

@ -9,7 +9,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestBtcdExtCustomResults ensures any results that have custom marshalling // TestBtcdExtCustomResults ensures any results that have custom marshalling

View File

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestBtcWalletExtCmds tests all of the btcwallet extended commands marshal and // TestBtcWalletExtCmds tests all of the btcwallet extended commands marshal and

View File

@ -11,7 +11,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// AddNodeSubCmd defines the type used in the addnode JSON-RPC command for the // AddNodeSubCmd defines the type used in the addnode JSON-RPC command for the

View File

@ -11,8 +11,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// TestChainSvrCmds tests all of the chain server commands marshal and unmarshal // TestChainSvrCmds tests all of the chain server commands marshal and unmarshal

View File

@ -8,7 +8,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestChainSvrCustomResults ensures any results that have custom marshalling // TestChainSvrCustomResults ensures any results that have custom marshalling

View File

@ -12,7 +12,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestChainSvrWsCmds tests all of the chain server websocket-specific commands // TestChainSvrWsCmds tests all of the chain server websocket-specific commands

View File

@ -12,7 +12,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestChainSvrWsNtfns tests all of the chain server websocket-specific // TestChainSvrWsNtfns tests all of the chain server websocket-specific

View File

@ -9,7 +9,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestChainSvrWsResults ensures any results that have custom marshalling // TestChainSvrWsResults ensures any results that have custom marshalling

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestCmdMethod tests the CmdMethod function to ensure it retunrs the expected // TestCmdMethod tests the CmdMethod function to ensure it retunrs the expected

View File

@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestAssignField tests the assignField function handles supported combinations // TestAssignField tests the assignField function handles supported combinations

View File

@ -7,7 +7,7 @@ package btcjson_test
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestErrorCodeStringer tests the stringized output for the ErrorCode type. // TestErrorCodeStringer tests the stringized output for the ErrorCode type.

View File

@ -8,7 +8,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// This example demonstrates how to create and marshal a command into a JSON-RPC // This example demonstrates how to create and marshal a command into a JSON-RPC

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestHelpReflectInternals ensures the various help functions which deal with // TestHelpReflectInternals ensures the various help functions which deal with

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestHelpers tests the various helper functions which create pointers to // TestHelpers tests the various helper functions which create pointers to

View File

@ -9,7 +9,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestIsValidIDType ensures the IsValidIDType function behaves as expected. // TestIsValidIDType ensures the IsValidIDType function behaves as expected.

View File

@ -9,7 +9,7 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestUsageFlagStringer tests the stringized output for the UsageFlag type. // TestUsageFlagStringer tests the stringized output for the UsageFlag type.

View File

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestWalletSvrCmds tests all of the wallet server commands marshal and // TestWalletSvrCmds tests all of the wallet server commands marshal and

View File

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestWalletSvrWsCmds tests all of the wallet server websocket-specific // TestWalletSvrWsCmds tests all of the wallet server websocket-specific

View File

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
// TestWalletSvrWsNtfns tests all of the chain server websocket-specific // TestWalletSvrWsNtfns tests all of the chain server websocket-specific

View File

@ -3,7 +3,7 @@ chaincfg
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/chaincfg) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/chaincfg)
Package chaincfg defines chain configuration parameters for the three standard Package chaincfg defines chain configuration parameters for the three standard
Bitcoin networks and provides the ability for callers to define their own custom Bitcoin networks and provides the ability for callers to define their own custom
@ -24,8 +24,8 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
) )
var testnet = flag.Bool("testnet", false, "operate on the testnet Bitcoin network") var testnet = flag.Bool("testnet", false, "operate on the testnet Bitcoin network")
@ -56,7 +56,7 @@ func main() {
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/chaincfg $ go get -u github.com/daglabs/btcd/chaincfg
``` ```
## GPG Verification Key ## GPG Verification Key

View File

@ -3,7 +3,7 @@ chainhash
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/chaincfg/chainhash) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/chaincfg/chainhash)
======= =======
chainhash provides a generic hash type and associated functions that allows the chainhash provides a generic hash type and associated functions that allows the
@ -12,7 +12,7 @@ specific hash algorithm to be abstracted.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/chaincfg/chainhash $ go get -u github.com/daglabs/btcd/chaincfg/chainhash
``` ```
## GPG Verification Key ## GPG Verification Key

View File

@ -25,8 +25,8 @@
// "fmt" // "fmt"
// "log" // "log"
// //
// "github.com/btcsuite/btcutil" // "github.com/daglabs/btcutil"
// "github.com/btcsuite/btcd/chaincfg" // "github.com/daglabs/btcd/chaincfg"
// ) // )
// //
// var testnet = flag.Bool("testnet", false, "operate on the testnet Bitcoin network") // var testnet = flag.Bool("testnet", false, "operate on the testnet Bitcoin network")

View File

@ -7,8 +7,8 @@ package chaincfg
import ( import (
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// genesisCoinbaseTx is the coinbase transaction for the genesis blocks for // genesisCoinbaseTx is the coinbase transaction for the genesis blocks for

View File

@ -11,8 +11,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
// These variables are the chain proof-of-work limit parameters for each default // These variables are the chain proof-of-work limit parameters for each default

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
. "github.com/btcsuite/btcd/chaincfg" . "github.com/daglabs/btcd/chaincfg"
) )
// Define some of the required parameters for a user-registered // Define some of the required parameters for a user-registered

View File

@ -9,10 +9,10 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/blockchain/indexers" "github.com/daglabs/btcd/blockchain/indexers"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/limits" "github.com/daglabs/btcd/limits"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
) )

View File

@ -9,11 +9,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -11,12 +11,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/blockchain/indexers" "github.com/daglabs/btcd/blockchain/indexers"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
var zeroHash = chainhash.Hash{} var zeroHash = chainhash.Hash{}

View File

@ -10,7 +10,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
) )
const ( const (

View File

@ -13,8 +13,8 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -10,7 +10,7 @@ import (
"net" "net"
"net/http" "net/http"
"github.com/btcsuite/btcd/btcjson" "github.com/daglabs/btcd/btcjson"
"github.com/btcsuite/go-socks/socks" "github.com/btcsuite/go-socks/socks"
) )

View File

@ -9,11 +9,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -9,10 +9,10 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
) )
const blockDbNamePrefix = "blocks" const blockDbNamePrefix = "blocks"

View File

@ -12,7 +12,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -20,14 +20,14 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/daglabs/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/connmgr" "github.com/daglabs/btcd/connmgr"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/mempool" "github.com/daglabs/btcd/mempool"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
"github.com/btcsuite/go-socks/socks" "github.com/btcsuite/go-socks/socks"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -3,7 +3,7 @@ connmgr
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/connmgr) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/connmgr)
Package connmgr implements a generic Bitcoin network connection manager. Package connmgr implements a generic Bitcoin network connection manager.
@ -29,7 +29,7 @@ In addition the connection manager provides the following utilities:
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/connmgr $ go get -u github.com/daglabs/btcd/connmgr
``` ```
## License ## License

View File

@ -11,8 +11,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
) )
const ( const (

View File

@ -3,7 +3,7 @@ database
[![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/database) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/daglabs/btcd/database)
Package database provides a block and metadata storage database. Package database provides a block and metadata storage database.
@ -13,8 +13,8 @@ one entity can have the database open at a time (for most database backends),
and that entity will be btcd. and that entity will be btcd.
When a client wants programmatic access to the data provided by btcd, they'll When a client wants programmatic access to the data provided by btcd, they'll
likely want to use the [rpcclient](https://github.com/btcsuite/btcd/tree/master/rpcclient) likely want to use the [rpcclient](https://github.com/daglabs/btcd/tree/master/rpcclient)
package which makes use of the [JSON-RPC API](https://github.com/btcsuite/btcd/tree/master/docs/json_rpc_api.md). package which makes use of the [JSON-RPC API](https://github.com/daglabs/btcd/tree/master/docs/json_rpc_api.md).
However, this package could be extremely useful for any applications requiring However, this package could be extremely useful for any applications requiring
Bitcoin block storage capabilities. Bitcoin block storage capabilities.
@ -37,16 +37,16 @@ storage, and strict checksums in key areas to ensure data integrity.
## Installation and Updating ## Installation and Updating
```bash ```bash
$ go get -u github.com/btcsuite/btcd/database $ go get -u github.com/daglabs/btcd/database
``` ```
## Examples ## Examples
* [Basic Usage Example](http://godoc.org/github.com/btcsuite/btcd/database#example-package--BasicUsage) * [Basic Usage Example](http://godoc.org/github.com/daglabs/btcd/database#example-package--BasicUsage)
Demonstrates creating a new database and using a managed read-write Demonstrates creating a new database and using a managed read-write
transaction to store and retrieve metadata. transaction to store and retrieve metadata.
* [Block Storage and Retrieval Example](http://godoc.org/github.com/btcsuite/btcd/database#example-package--BlockStorageAndRetrieval) * [Block Storage and Retrieval Example](http://godoc.org/github.com/daglabs/btcd/database#example-package--BlockStorageAndRetrieval)
Demonstrates creating a new database, using a managed read-write transaction Demonstrates creating a new database, using a managed read-write transaction
to store a block, and then using a managed read-only transaction to fetch the to store a block, and then using a managed read-only transaction to fetch the
block. block.

View File

@ -9,8 +9,8 @@ import (
"errors" "errors"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
) )
// fetchBlockCmd defines the configuration options for the fetchblock command. // fetchBlockCmd defines the configuration options for the fetchblock command.

View File

@ -10,8 +10,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
) )
// blockRegionCmd defines the configuration options for the fetchblockregion // blockRegionCmd defines the configuration options for the fetchblockregion

View File

@ -10,11 +10,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/chaincfg" "github.com/daglabs/btcd/chaincfg"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
var ( var (

View File

@ -12,10 +12,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btcd/wire" "github.com/daglabs/btcd/wire"
"github.com/btcsuite/btcutil" "github.com/daglabs/btcutil"
) )
// importCmd defines the configuration options for the insecureimport command. // importCmd defines the configuration options for the insecureimport command.

View File

@ -7,8 +7,8 @@ package main
import ( import (
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/daglabs/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
) )
// headersCmd defines the configuration options for the loadheaders command. // headersCmd defines the configuration options for the loadheaders command.

View File

@ -10,7 +10,7 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
flags "github.com/jessevdk/go-flags" flags "github.com/jessevdk/go-flags"
) )

View File

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/daglabs/btcd/database/ffldb"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"errors" "errors"
"testing" "testing"
"github.com/btcsuite/btcd/database" "github.com/daglabs/btcd/database"
) )
// TestErrorCodeStringer tests the stringized output for the ErrorCode type. // TestErrorCodeStringer tests the stringized output for the ErrorCode type.

Some files were not shown because too many files have changed in this diff Show More