step 1 of updating module paths to not use replace

This commit is contained in:
Brannon King 2021-09-10 16:23:04 -04:00
parent a56581d967
commit 3a046d153c
218 changed files with 584 additions and 574 deletions

26
CHANGES
View file

@ -539,7 +539,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
for version 3 blocks which are compatible with BIP0066 for version 3 blocks which are compatible with BIP0066
- Allow getblocktemplate to serve blocks when the current time is - Allow getblocktemplate to serve blocks when the current time is
less than the minimum allowed time for a generated block template less than the minimum allowed time for a generated block template
(https://github.com/btcsuite/btcd/issues/209) (https://github.com/lbryio/lbcd/issues/209)
- Crypto changes: - Crypto changes:
- Optimize scalar multiplication by the base point by using a - Optimize scalar multiplication by the base point by using a
pre-computed table which results in approximately a 35% speedup pre-computed table which results in approximately a 35% speedup
@ -554,29 +554,29 @@ Changes in 0.10.0 (Sun Mar 01 2015)
- Add a new parameter --addrindex which will enable the creation of an - Add a new parameter --addrindex which will enable the creation of an
address index which can be queried to determine all transactions which address index which can be queried to determine all transactions which
involve a given address involve a given address
(https://github.com/btcsuite/btcd/issues/190) (https://github.com/lbryio/lbcd/issues/190)
- Add a new logging subsystem for address index related operations - Add a new logging subsystem for address index related operations
- Support new searchrawtransactions RPC - Support new searchrawtransactions RPC
(https://github.com/btcsuite/btcd/issues/185) (https://github.com/lbryio/lbcd/issues/185)
- RPC changes: - RPC changes:
- Require TLS version 1.2 as the minimum version for all TLS connections - Require TLS version 1.2 as the minimum version for all TLS connections
- Provide support for disabling TLS when only listening on localhost - Provide support for disabling TLS when only listening on localhost
(https://github.com/btcsuite/btcd/pull/192) (https://github.com/lbryio/lbcd/pull/192)
- Modify help output for all commands to provide much more consistent - Modify help output for all commands to provide much more consistent
and detailed information and detailed information
- Correct case in getrawtransaction which would refuse to serve certain - Correct case in getrawtransaction which would refuse to serve certain
transactions with invalid scripts transactions with invalid scripts
(https://github.com/btcsuite/btcd/issues/210) (https://github.com/lbryio/lbcd/issues/210)
- Correct error handling in the getrawtransaction RPC which could lead - Correct error handling in the getrawtransaction RPC which could lead
to a crash in rare cases to a crash in rare cases
(https://github.com/btcsuite/btcd/issues/196) (https://github.com/lbryio/lbcd/issues/196)
- Update getinfo RPC to include the appropriate 'timeoffset' calculated - Update getinfo RPC to include the appropriate 'timeoffset' calculated
from the median network time from the median network time
- Modify listreceivedbyaddress result type to include txids field so it - Modify listreceivedbyaddress result type to include txids field so it
is compatible is compatible
- Add 'iswatchonly' field to validateaddress result - Add 'iswatchonly' field to validateaddress result
- Add 'startingpriority' and 'currentpriority' fields to getrawmempool - Add 'startingpriority' and 'currentpriority' fields to getrawmempool
(https://github.com/btcsuite/btcd/issues/178) (https://github.com/lbryio/lbcd/issues/178)
- Don't omit the 'confirmations' field from getrawtransaction when it is - Don't omit the 'confirmations' field from getrawtransaction when it is
zero zero
- Websocket changes: - Websocket changes:
@ -592,7 +592,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
dumping all of the commands dumping all of the commands
- Make the usage syntax much more consistent and correct a few cases of - Make the usage syntax much more consistent and correct a few cases of
misnamed fields misnamed fields
(https://github.com/btcsuite/btcd/issues/305) (https://github.com/lbryio/lbcd/issues/305)
- Improve usage errors to show the specific parameter number, reason, - Improve usage errors to show the specific parameter number, reason,
and error code and error code
- Only show the usage for specific command is shown when a valid command - Only show the usage for specific command is shown when a valid command
@ -611,7 +611,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
- Remove utility in favor of the RPC getblock method - Remove utility in favor of the RPC getblock method
- Notable developer-related package changes: - Notable developer-related package changes:
- Many of the core packages have been relocated into the btcd repository - Many of the core packages have been relocated into the btcd repository
(https://github.com/btcsuite/btcd/issues/214) (https://github.com/lbryio/lbcd/issues/214)
- A new version of the btcjson package that has been completely - A new version of the btcjson package that has been completely
redesigned from the ground up based based upon how the project has redesigned from the ground up based based upon how the project has
evolved and lessons learned while using it since it was first written evolved and lessons learned while using it since it was first written
@ -628,21 +628,21 @@ Changes in 0.10.0 (Sun Mar 01 2015)
and using that data to calculate an offset against the local time and using that data to calculate an offset against the local time
- Misc changes: - Misc changes:
- Fix a slow memory leak due to tickers not being stopped - Fix a slow memory leak due to tickers not being stopped
(https://github.com/btcsuite/btcd/issues/189) (https://github.com/lbryio/lbcd/issues/189)
- Fix an issue where a mix of orphans and SPV clients could trigger a - Fix an issue where a mix of orphans and SPV clients could trigger a
condition where peers would no longer be served condition where peers would no longer be served
(https://github.com/btcsuite/btcd/issues/231) (https://github.com/lbryio/lbcd/issues/231)
- The RPC username and password can now contain symbols which previously - The RPC username and password can now contain symbols which previously
conflicted with special symbols used in URLs conflicted with special symbols used in URLs
- Improve handling of obtaining random nonces to prevent cases where it - Improve handling of obtaining random nonces to prevent cases where it
could error when not enough entropy was available could error when not enough entropy was available
- Improve handling of home directory creation errors such as in the case - Improve handling of home directory creation errors such as in the case
of unmounted symlinks (https://github.com/btcsuite/btcd/issues/193) of unmounted symlinks (https://github.com/lbryio/lbcd/issues/193)
- Improve the error reporting for rejected transactions to include the - Improve the error reporting for rejected transactions to include the
inputs which are missing and/or being double spent inputs which are missing and/or being double spent
- Update sample config file with new options and correct a comment - Update sample config file with new options and correct a comment
regarding the fact the RPC server only listens on localhost by default regarding the fact the RPC server only listens on localhost by default
(https://github.com/btcsuite/btcd/issues/218) (https://github.com/lbryio/lbcd/issues/218)
- Update the continuous integration builds to run several tools which - Update the continuous integration builds to run several tools which
help keep code quality high help keep code quality high
- Significant amount of internal code cleanup and improvements - Significant amount of internal code cleanup and improvements

View file

@ -9,7 +9,7 @@
# docker build . -t yourregistry/btcd --build-arg ARCH=arm64v8 # docker build . -t yourregistry/btcd --build-arg ARCH=arm64v8
# #
# For more information how to use this docker image visit: # For more information how to use this docker image visit:
# https://github.com/btcsuite/btcd/tree/master/docs # https://github.com/lbryio/lbcd/tree/master/docs
# #
# 8333 Mainnet Bitcoin peer-to-peer port # 8333 Mainnet Bitcoin peer-to-peer port
# 8334 Mainet RPC port # 8334 Mainet RPC port

View file

@ -4,7 +4,7 @@ lbcd
[![Build Status](https://github.com/lbryio/lbcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/lbryio/lbcd/actions) [![Build Status](https://github.com/lbryio/lbcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/lbryio/lbcd/actions)
[![Coverage Status](https://coveralls.io/repos/github/lbryio/lbcd/badge.svg?branch=master)](https://coveralls.io/github/lbryio/lbcd?branch=master) [![Coverage Status](https://coveralls.io/repos/github/lbryio/lbcd/badge.svg?branch=master)](https://coveralls.io/github/lbryio/lbcd?branch=master)
[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) [![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
<!--[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd)--> <!--[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/lbryio/lbcd)-->
lbcd is a full node implementation of LBRY's blockchain written in Go (golang). lbcd is a full node implementation of LBRY's blockchain written in Go (golang).
@ -70,7 +70,7 @@ is used for this project. All pull requests will be considered.
<!-- ## Release Verification <!-- ## Release Verification
Please see our [documentation on the current build/verification Please see our [documentation on the current build/verification
process](https://github.com/btcsuite/btcd/tree/master/release) for all our process](https://github.com/lbryio/lbcd/tree/master/release) for all our
releases for information on how to verify the integrity of published releases releases for information on how to verify the integrity of published releases
using our reproducible build system. using our reproducible build system.
--> -->

View file

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

View file

@ -7,7 +7,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
// randAddr generates a *wire.NetAddress backed by a random IPv4/IPv6 address. // randAddr generates a *wire.NetAddress backed by a random IPv4/IPv6 address.

View file

@ -12,8 +12,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/addrmgr" "github.com/lbryio/lbcd/addrmgr"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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/lbryio/lbcd/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/lbryio/lbcd/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

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

View file

@ -8,8 +8,8 @@ import (
"net" "net"
"testing" "testing"
"github.com/btcsuite/btcd/addrmgr" "github.com/lbryio/lbcd/addrmgr"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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

@ -7,7 +7,7 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -10,10 +10,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/lbryio/lbcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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

@ -11,14 +11,14 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/lbryio/lbcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcd/claimtrie" "github.com/lbryio/lbcd/claimtrie"
) )
const ( const (

View file

@ -12,9 +12,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -11,8 +11,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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/lbryio/lbcd/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,9 +8,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg" "github.com/lbryio/lbcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -6,14 +6,14 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcd/claimtrie" "github.com/lbryio/lbcd/claimtrie"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
"github.com/btcsuite/btcd/claimtrie/normalization" "github.com/lbryio/lbcd/claimtrie/normalization"
) )
func (b *BlockChain) SetClaimtrieHeader(block *btcutil.Block, view *UtxoViewpoint) error { func (b *BlockChain) SetClaimtrieHeader(block *btcutil.Block, view *UtxoViewpoint) error {

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
fullblocktests fullblocktests
============== ==============
[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions) [![Build Status](https://github.com/lbryio/lbcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/lbryio/lbcd/actions)
[![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)](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain/fullblocktests) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/lbryio/lbcd/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/lbryio/lbcd/blockchain/fullblocktests
``` ```
## License ## License

View file

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

View file

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

View file

@ -1,9 +1,9 @@
indexers indexers
======== ========
[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions) [![Build Status](https://github.com/lbryio/lbcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/lbryio/lbcd/actions)
[![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://pkg.go.dev/github.com/btcsuite/btcd/blockchain/indexers?status.png)](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain/indexers) [![GoDoc](https://pkg.go.dev/github.com/lbryio/lbcd/blockchain/indexers?status.png)](https://pkg.go.dev/github.com/lbryio/lbcd/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/lbryio/lbcd/blockchain/indexers
``` ```
## License ## License

View file

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

View file

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

View file

@ -7,11 +7,11 @@ package indexers
import ( import (
"errors" "errors"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/lbryio/lbcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/gcs" "github.com/btcsuite/btcutil/gcs"
"github.com/btcsuite/btcutil/gcs/builder" "github.com/btcsuite/btcutil/gcs/builder"

View file

@ -11,8 +11,8 @@ import (
"encoding/binary" "encoding/binary"
"errors" "errors"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -8,10 +8,10 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -8,10 +8,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

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

View file

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -10,8 +10,8 @@ import (
"runtime" "runtime"
"time" "time"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -7,7 +7,7 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/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/lbryio/lbcd/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/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
const ( const (

View file

@ -7,10 +7,10 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

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

View file

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

View file

@ -7,8 +7,8 @@ package blockchain
import ( import (
"fmt" "fmt"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -15,10 +15,10 @@ import (
"runtime/debug" "runtime/debug"
"runtime/pprof" "runtime/pprof"
"github.com/btcsuite/btcd/blockchain/indexers" "github.com/lbryio/lbcd/blockchain/indexers"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/limits" "github.com/lbryio/lbcd/limits"
"github.com/felixge/fgprof" "github.com/felixge/fgprof"
) )

View file

@ -8,8 +8,8 @@ import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/lbryio/lbcd/btcec"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/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/lbryio/lbcd/btcec"
) )
func main() { func main() {

View file

@ -12,7 +12,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/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/lbryio/lbcd/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/lbryio/lbcd/btcjson"
) )
// TestBtcWalletExtCmds tests all of the btcwallet extended commands marshal and // TestBtcWalletExtCmds tests all of the btcwallet extended commands marshal and

View file

@ -13,7 +13,7 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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

@ -12,8 +12,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/btcjson"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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

@ -9,9 +9,9 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -9,8 +9,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/btcjson"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
) )

View file

@ -12,7 +12,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/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/lbryio/lbcd/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/lbryio/lbcd/btcjson"
) )
// TestChainSvrWsResults ensures any results that have custom marshalling // TestChainSvrWsResults ensures any results that have custom marshalling

View file

@ -8,7 +8,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/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/lbryio/lbcd/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/lbryio/lbcd/btcjson"
) )
// TestIsValidIDType ensures the IsValidIDType function behaves as expected. // TestIsValidIDType ensures the IsValidIDType function behaves as expected.

View file

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/btcjson"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -8,7 +8,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
) )
// CreateWalletResult models the result of the createwallet command. // CreateWalletResult models the result of the createwallet command.

View file

@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
) )

View file

@ -11,7 +11,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/btcsuite/btcd/btcjson" "github.com/lbryio/lbcd/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/lbryio/lbcd/btcjson"
) )
// TestWalletSvrWsNtfns tests all of the chain server websocket-specific // TestWalletSvrWsNtfns tests all of the chain server websocket-specific

View file

@ -1,9 +1,9 @@
chainhash chainhash
========= =========
[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions) [![Build Status](https://github.com/lbryio/lbcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/lbryio/lbcd/actions)
[![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)](https://pkg.go.dev/github.com/btcsuite/btcd/chaincfg/chainhash) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/lbryio/lbcd/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/lbryio/lbcd/chaincfg/chainhash
``` ```
## GPG Verification Key ## GPG Verification Key

View file

@ -26,7 +26,7 @@
// "log" // "log"
// //
// "github.com/btcsuite/btcutil" // "github.com/btcsuite/btcutil"
// "github.com/btcsuite/btcd/chaincfg" // "github.com/lbryio/lbcd/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/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
// genesisCoinbaseTx is the coinbase transaction for the genesis blocks for // genesisCoinbaseTx is the coinbase transaction for the genesis blocks for

View file

@ -13,8 +13,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/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/lbryio/lbcd/chaincfg"
) )
// Define some of the required parameters for a user-registered // Define some of the required parameters for a user-registered

View file

@ -4,7 +4,7 @@ import (
"encoding/binary" "encoding/binary"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/cockroachdb/pebble" "github.com/cockroachdb/pebble"
) )

View file

@ -1,7 +1,7 @@
package block package block
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
) )
// Repo defines APIs for Block to access persistence layer. // Repo defines APIs for Block to access persistence layer.

View file

@ -5,7 +5,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
"github.com/cockroachdb/pebble" "github.com/cockroachdb/pebble"

View file

@ -1,6 +1,6 @@
package chain package chain
import "github.com/btcsuite/btcd/claimtrie/change" import "github.com/lbryio/lbcd/claimtrie/change"
type Repo interface { type Repo interface {
Save(height int32, changes []change.Change) error Save(height int32, changes []change.Change) error

View file

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
type ChangeType uint32 type ChangeType uint32

View file

@ -3,8 +3,8 @@ package change
import ( import (
"encoding/binary" "encoding/binary"
"encoding/hex" "encoding/hex"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -10,21 +10,21 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/btcsuite/btcd/claimtrie/block" "github.com/lbryio/lbcd/claimtrie/block"
"github.com/btcsuite/btcd/claimtrie/block/blockrepo" "github.com/lbryio/lbcd/claimtrie/block/blockrepo"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/config" "github.com/lbryio/lbcd/claimtrie/config"
"github.com/btcsuite/btcd/claimtrie/merkletrie" "github.com/lbryio/lbcd/claimtrie/merkletrie"
"github.com/btcsuite/btcd/claimtrie/merkletrie/merkletrierepo" "github.com/lbryio/lbcd/claimtrie/merkletrie/merkletrierepo"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
"github.com/btcsuite/btcd/claimtrie/node/noderepo" "github.com/lbryio/lbcd/claimtrie/node/noderepo"
"github.com/btcsuite/btcd/claimtrie/normalization" "github.com/lbryio/lbcd/claimtrie/normalization"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/claimtrie/temporal" "github.com/lbryio/lbcd/claimtrie/temporal"
"github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
// ClaimTrie implements a Merkle Trie supporting linear history of commits. // ClaimTrie implements a Merkle Trie supporting linear history of commits.

View file

@ -5,13 +5,13 @@ import (
"testing" "testing"
"time" "time"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/config" "github.com/lbryio/lbcd/claimtrie/config"
"github.com/btcsuite/btcd/claimtrie/merkletrie" "github.com/lbryio/lbcd/claimtrie/merkletrie"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -6,16 +6,16 @@ import (
"sync" "sync"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/claimtrie" "github.com/lbryio/lbcd/claimtrie"
"github.com/btcsuite/btcd/claimtrie/chain" "github.com/lbryio/lbcd/claimtrie/chain"
"github.com/btcsuite/btcd/claimtrie/chain/chainrepo" "github.com/lbryio/lbcd/claimtrie/chain/chainrepo"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/config" "github.com/lbryio/lbcd/claimtrie/config"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
_ "github.com/btcsuite/btcd/database/ffldb" _ "github.com/lbryio/lbcd/database/ffldb"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/cockroachdb/errors" "github.com/cockroachdb/errors"

View file

@ -4,10 +4,10 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/btcsuite/btcd/blockchain" "github.com/lbryio/lbcd/blockchain"
"github.com/btcsuite/btcd/chaincfg" "github.com/lbryio/lbcd/chaincfg"
"github.com/btcsuite/btcd/database" "github.com/lbryio/lbcd/database"
"github.com/btcsuite/btcd/txscript" "github.com/lbryio/lbcd/txscript"
"github.com/cockroachdb/errors" "github.com/cockroachdb/errors"
) )

View file

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/claimtrie/merkletrie" "github.com/lbryio/lbcd/claimtrie/merkletrie"
"github.com/btcsuite/btcd/claimtrie/merkletrie/merkletrierepo" "github.com/lbryio/lbcd/claimtrie/merkletrie/merkletrierepo"
"github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo"
"github.com/cockroachdb/errors" "github.com/cockroachdb/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View file

@ -6,9 +6,9 @@ import (
"math" "math"
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
"github.com/btcsuite/btcd/claimtrie/node/noderepo" "github.com/lbryio/lbcd/claimtrie/node/noderepo"
"github.com/cockroachdb/errors" "github.com/cockroachdb/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View file

@ -3,9 +3,9 @@ package cmd
import ( import (
"os" "os"
"github.com/btcsuite/btcd/claimtrie/config" "github.com/lbryio/lbcd/claimtrie/config"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View file

@ -3,7 +3,7 @@ package cmd
import ( import (
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo"
"github.com/cockroachdb/errors" "github.com/cockroachdb/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
) )
var status = map[node.Status]string{ var status = map[node.Status]string{

View file

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/btcsuite/btcd/claimtrie/cmd/cmd" "github.com/lbryio/lbcd/claimtrie/cmd/cmd"
) )
func main() { func main() {

View file

@ -3,7 +3,7 @@ package config
import ( import (
"path/filepath" "path/filepath"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
) )

View file

@ -1,7 +1,7 @@
package merkletrie package merkletrie
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
) )
type KeyType []byte type KeyType []byte

View file

@ -8,8 +8,8 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
) )
var ( var (

View file

@ -3,8 +3,8 @@ package merkletrie
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -6,8 +6,8 @@ import (
"runtime" "runtime"
"sync" "sync"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
) )
type MerkleTrie interface { type MerkleTrie interface {

View file

@ -1,7 +1,7 @@
package merkletrie package merkletrie
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
) )
type vertex struct { type vertex struct {

View file

@ -5,10 +5,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
type Status int type Status int

View file

@ -1,8 +1,8 @@
package node package node
import ( import (
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
type ClaimList []*Claim type ClaimList []*Claim

View file

@ -1,8 +1,8 @@
package node package node
import ( import (
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
) )
type HashV2Manager struct { type HashV2Manager struct {

View file

@ -5,8 +5,8 @@ import (
"encoding/binary" "encoding/binary"
"strconv" "strconv"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
) )
func HashMerkleBranches(left *chainhash.Hash, right *chainhash.Hash) *chainhash.Hash { func HashMerkleBranches(left *chainhash.Hash, right *chainhash.Hash) *chainhash.Hash {

View file

@ -5,9 +5,9 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"sort" "sort"
"github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lbryio/lbcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
) )
type Manager interface { type Manager interface {

View file

@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/node/noderepo" "github.com/lbryio/lbcd/claimtrie/node/noderepo"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
"github.com/btcsuite/btcd/wire" "github.com/lbryio/lbcd/wire"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -5,8 +5,8 @@ import (
"math" "math"
"sort" "sort"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
) )
type Node struct { type Node struct {

View file

@ -3,8 +3,8 @@ package noderepo
import ( import (
"testing" "testing"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/node" "github.com/lbryio/lbcd/claimtrie/node"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"sort" "sort"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/cockroachdb/pebble" "github.com/cockroachdb/pebble"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View file

@ -3,9 +3,9 @@ package node
import ( import (
"bytes" "bytes"
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
"github.com/btcsuite/btcd/claimtrie/normalization" "github.com/lbryio/lbcd/claimtrie/normalization"
"github.com/btcsuite/btcd/claimtrie/param" "github.com/lbryio/lbcd/claimtrie/param"
) )
type NormalizingManager struct { // implements Manager type NormalizingManager struct { // implements Manager

View file

@ -1,7 +1,7 @@
package node package node
import ( import (
"github.com/btcsuite/btcd/claimtrie/change" "github.com/lbryio/lbcd/claimtrie/change"
) )
// Repo defines APIs for Node to access persistence layer. // Repo defines APIs for Node to access persistence layer.

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