From 3a046d153c8daaa6a7724c9e5c46410c81af869f Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 10 Sep 2021 16:23:04 -0400 Subject: [PATCH] step 1 of updating module paths to not use replace --- CHANGES | 26 +++++++-------- Dockerfile | 2 +- README.md | 4 +-- addrmgr/addrmanager.go | 4 +-- addrmgr/addrmanager_internal_test.go | 2 +- addrmgr/addrmanager_test.go | 4 +-- addrmgr/internal_test.go | 2 +- addrmgr/knownaddress.go | 2 +- addrmgr/network.go | 2 +- addrmgr/network_test.go | 4 +-- blockchain/accept.go | 2 +- blockchain/blockindex.go | 8 ++--- blockchain/chain.go | 12 +++---- blockchain/chainio.go | 6 ++-- blockchain/chainio_test.go | 4 +-- blockchain/chainview_test.go | 2 +- blockchain/checkpoints.go | 6 ++-- blockchain/claimtrie.go | 12 +++---- blockchain/common_test.go | 12 +++---- blockchain/compress.go | 4 +-- blockchain/difficulty.go | 2 +- blockchain/fullblocktests/README.md | 6 ++-- blockchain/fullblocktests/generate.go | 12 +++---- blockchain/fullblocktests/params.go | 6 ++-- blockchain/indexers/README.md | 6 ++-- blockchain/indexers/addrindex.go | 12 +++---- blockchain/indexers/addrindex_test.go | 2 +- blockchain/indexers/cfindex.go | 10 +++--- blockchain/indexers/common.go | 4 +-- blockchain/indexers/manager.go | 8 ++--- blockchain/indexers/txindex.go | 8 ++--- blockchain/merkle.go | 4 +-- blockchain/process.go | 4 +-- blockchain/scriptval.go | 4 +-- blockchain/thresholdstate.go | 2 +- blockchain/thresholdstate_test.go | 2 +- blockchain/upgrade.go | 6 ++-- blockchain/utxoviewpoint.go | 8 ++--- blockchain/validate.go | 8 ++--- blockchain/versionbits.go | 2 +- blockchain/weight.go | 4 +-- btcd.go | 8 ++--- btcec/example_test.go | 4 +-- btcec/genprecomps.go | 2 +- btcjson/btcdextcmds_test.go | 2 +- btcjson/btcdextresults_test.go | 2 +- btcjson/btcwalletextcmds_test.go | 2 +- btcjson/chainsvrcmds.go | 2 +- btcjson/chainsvrcmds_test.go | 4 +-- btcjson/chainsvrresults.go | 4 +-- btcjson/chainsvrresults_test.go | 4 +-- btcjson/chainsvrwscmds_test.go | 2 +- btcjson/chainsvrwsntfns_test.go | 2 +- btcjson/chainsvrwsresults_test.go | 2 +- btcjson/example_test.go | 2 +- btcjson/helpers_test.go | 2 +- btcjson/jsonrpc_test.go | 2 +- btcjson/walletsvrcmds_test.go | 2 +- btcjson/walletsvrresults.go | 2 +- btcjson/walletsvrresults_test.go | 2 +- btcjson/walletsvrwscmds_test.go | 2 +- btcjson/walletsvrwsntfns_test.go | 2 +- chaincfg/chainhash/README.md | 6 ++-- chaincfg/doc.go | 2 +- chaincfg/genesis.go | 4 +-- chaincfg/params.go | 4 +-- chaincfg/register_test.go | 2 +- claimtrie/block/blockrepo/pebble.go | 2 +- claimtrie/block/repo.go | 2 +- claimtrie/chain/chainrepo/pebble.go | 2 +- claimtrie/chain/repo.go | 2 +- claimtrie/change/change.go | 4 +-- claimtrie/change/claimid.go | 4 +-- claimtrie/claimtrie.go | 28 ++++++++-------- claimtrie/claimtrie_test.go | 12 +++---- claimtrie/cmd/cmd/chain.go | 20 ++++++------ claimtrie/cmd/cmd/helper.go | 8 ++--- claimtrie/cmd/cmd/merkletrie.go | 6 ++-- claimtrie/cmd/cmd/node.go | 6 ++-- claimtrie/cmd/cmd/root.go | 6 ++-- claimtrie/cmd/cmd/temporal.go | 2 +- claimtrie/cmd/cmd/ui.go | 4 +-- claimtrie/cmd/main.go | 2 +- claimtrie/config/config.go | 2 +- claimtrie/merkletrie/collapsedtrie.go | 2 +- claimtrie/merkletrie/merkletrie.go | 4 +-- claimtrie/merkletrie/merkletrie_test.go | 4 +-- claimtrie/merkletrie/ramtrie.go | 4 +-- claimtrie/merkletrie/vertex.go | 2 +- claimtrie/node/claim.go | 8 ++--- claimtrie/node/claim_list.go | 4 +-- claimtrie/node/hashfork_manager.go | 4 +-- claimtrie/node/hashfunc.go | 4 +-- claimtrie/node/manager.go | 6 ++-- claimtrie/node/manager_test.go | 8 ++--- claimtrie/node/node.go | 4 +-- claimtrie/node/noderepo/noderepo_test.go | 4 +-- claimtrie/node/noderepo/pebble.go | 2 +- claimtrie/node/normalizing_manager.go | 6 ++-- claimtrie/node/repo.go | 2 +- claimtrie/normalization/normalizer.go | 2 +- claimtrie/param/general.go | 2 +- .../temporalrepo/temporalrepo_test.go | 2 +- cmd/addblock/addblock.go | 8 ++--- cmd/addblock/config.go | 8 ++--- cmd/addblock/import.go | 10 +++--- cmd/findcheckpoint/config.go | 8 ++--- cmd/findcheckpoint/findcheckpoint.go | 8 ++--- cmd/lbcctl/btcctl.go | 2 +- cmd/lbcctl/config.go | 4 +-- cmd/lbcctl/httpclient.go | 2 +- config.go | 16 +++++----- connmgr/seed.go | 4 +-- database/README.md | 4 +-- database/cmd/dbtool/fetchblock.go | 4 +-- database/cmd/dbtool/fetchblockregion.go | 4 +-- database/cmd/dbtool/globalconfig.go | 8 ++--- database/cmd/dbtool/insecureimport.go | 6 ++-- database/cmd/dbtool/loadheaders.go | 4 +-- database/cmd/dbtool/main.go | 2 +- database/driver_test.go | 4 +-- database/ffldb/README.md | 4 +-- database/ffldb/blockio.go | 6 ++-- database/ffldb/db.go | 8 ++--- database/ffldb/dbcache.go | 2 +- database/ffldb/driver.go | 4 +-- database/ffldb/export_test.go | 2 +- database/ffldb/interface_test.go | 8 ++--- database/ffldb/ldbtreapiter.go | 2 +- database/ffldb/reconcile.go | 2 +- database/ffldb/treap/README.md | 4 +-- database/interface.go | 2 +- docs/json_rpc_api.md | 18 +++++------ go.mod | 9 ++---- go.sum | 19 +++++++++-- integration/README.md | 2 +- integration/rpctest/blockgen.go | 12 +++---- integration/rpctest/memwallet.go | 14 ++++---- integration/rpctest/node.go | 2 +- integration/rpctest/rpc_harness.go | 8 ++--- integration/rpctest/utils.go | 4 +-- log.go | 24 +++++++------- mempool/error.go | 4 +-- mempool/estimatefee.go | 4 +-- mempool/estimatefee_test.go | 6 ++-- mempool/mempool.go | 16 +++++----- mempool/policy.go | 6 ++-- mining/cpuminer/README.md | 6 ++-- mining/cpuminer/cpuminer.go | 10 +++--- mining/mining.go | 10 +++--- mining/policy.go | 4 +-- mining/policy_test.go | 6 ++-- netsync/interface.go | 12 +++---- netsync/manager.go | 14 ++++---- params.go | 4 +-- peer/doc.go | 2 +- peer/example_test.go | 6 ++-- peer/log.go | 6 ++-- peer/peer.go | 8 ++--- rpcadapters.go | 12 +++---- rpcclaimtrie.go | 14 ++++---- rpcclient/chain.go | 6 ++-- rpcclient/doc.go | 2 +- rpcclient/example_test.go | 2 +- rpcclient/examples/bitcoincorehttp/README.md | 4 +-- rpcclient/examples/bitcoincorehttp/main.go | 2 +- .../examples/bitcoincorehttpbulk/README.md | 4 +-- .../examples/bitcoincorehttpbulk/main.go | 2 +- rpcclient/examples/btcdwebsockets/README.md | 4 +-- rpcclient/examples/btcdwebsockets/main.go | 4 +-- .../examples/btcwalletwebsockets/README.md | 4 +-- .../examples/btcwalletwebsockets/main.go | 2 +- rpcclient/extensions.go | 6 ++-- rpcclient/infrastructure.go | 4 +-- rpcclient/mining.go | 4 +-- rpcclient/net.go | 2 +- rpcclient/notify.go | 6 ++-- rpcclient/rawrequest.go | 2 +- rpcclient/rawtransactions.go | 6 ++-- rpcclient/wallet.go | 8 ++--- rpcserver.go | 26 +++++++-------- rpcserverhelp.go | 2 +- rpcwebsocket.go | 14 ++++---- server.go | 32 +++++++++---------- txscript/engine.go | 4 +-- txscript/hashcache.go | 4 +-- txscript/hashcache_test.go | 2 +- txscript/nameclaim.go | 2 +- txscript/opcode.go | 6 ++-- txscript/pkscript.go | 6 ++-- txscript/pkscript_test.go | 2 +- txscript/script.go | 4 +-- txscript/sigcache.go | 4 +-- txscript/sigcache_test.go | 4 +-- txscript/sign.go | 6 ++-- txscript/sign_test.go | 8 ++--- txscript/standard.go | 4 +-- wire/blockheader.go | 2 +- wire/common.go | 2 +- wire/invvect.go | 2 +- wire/invvect_test.go | 2 +- wire/message.go | 2 +- wire/msgblock.go | 2 +- wire/msgcfcheckpt.go | 2 +- wire/msgcfheaders.go | 2 +- wire/msgcfilter.go | 2 +- wire/msggetblocks.go | 2 +- wire/msggetcfcheckpt.go | 2 +- wire/msggetcfheaders.go | 2 +- wire/msggetcfilters.go | 2 +- wire/msggetdata_test.go | 2 +- wire/msggetheaders.go | 2 +- wire/msginv_test.go | 2 +- wire/msgmerkleblock.go | 2 +- wire/msgnotfound_test.go | 2 +- wire/msgreject.go | 2 +- wire/msgtx.go | 2 +- wire/msgtx_test.go | 2 +- 218 files changed, 584 insertions(+), 574 deletions(-) diff --git a/CHANGES b/CHANGES index fd59a886..ec7c8e4e 100644 --- a/CHANGES +++ b/CHANGES @@ -539,7 +539,7 @@ Changes in 0.10.0 (Sun Mar 01 2015) for version 3 blocks which are compatible with BIP0066 - Allow getblocktemplate to serve blocks when the current time is 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: - Optimize scalar multiplication by the base point by using a 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 address index which can be queried to determine all transactions which 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 - Support new searchrawtransactions RPC - (https://github.com/btcsuite/btcd/issues/185) + (https://github.com/lbryio/lbcd/issues/185) - RPC changes: - Require TLS version 1.2 as the minimum version for all TLS connections - 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 and detailed information - Correct case in getrawtransaction which would refuse to serve certain 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 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 from the median network time - Modify listreceivedbyaddress result type to include txids field so it is compatible - Add 'iswatchonly' field to validateaddress result - 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 zero - Websocket changes: @@ -592,7 +592,7 @@ Changes in 0.10.0 (Sun Mar 01 2015) dumping all of the commands - Make the usage syntax much more consistent and correct a few cases of 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, and error code - 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 - Notable developer-related package changes: - 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 redesigned from the ground up based based upon how the project has 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 - Misc changes: - 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 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 conflicted with special symbols used in URLs - Improve handling of obtaining random nonces to prevent cases where it could error when not enough entropy was available - 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 inputs which are missing and/or being double spent - Update sample config file with new options and correct a comment 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 help keep code quality high - Significant amount of internal code cleanup and improvements diff --git a/Dockerfile b/Dockerfile index b99b7a3e..2b9f8c9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ # docker build . -t yourregistry/btcd --build-arg ARCH=arm64v8 # # 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 # 8334 Mainet RPC port diff --git a/README.md b/README.md index 4fec122c..470c69a9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ lbcd [![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) [![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) - + 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. diff --git a/addrmgr/addrmanager.go b/addrmgr/addrmanager.go index fa8f27bc..6fbcc09f 100644 --- a/addrmgr/addrmanager.go +++ b/addrmgr/addrmanager.go @@ -23,8 +23,8 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // AddrManager provides a concurrency safe address manager for caching potential diff --git a/addrmgr/addrmanager_internal_test.go b/addrmgr/addrmanager_internal_test.go index 1c19dceb..b2f5f3d1 100644 --- a/addrmgr/addrmanager_internal_test.go +++ b/addrmgr/addrmanager_internal_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // randAddr generates a *wire.NetAddress backed by a random IPv4/IPv6 address. diff --git a/addrmgr/addrmanager_test.go b/addrmgr/addrmanager_test.go index 676913e2..d623479c 100644 --- a/addrmgr/addrmanager_test.go +++ b/addrmgr/addrmanager_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/addrmgr" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/addrmgr" + "github.com/lbryio/lbcd/wire" ) // naTest is used to describe a test to be performed against the NetAddressKey diff --git a/addrmgr/internal_test.go b/addrmgr/internal_test.go index e50e923c..b7c650c7 100644 --- a/addrmgr/internal_test.go +++ b/addrmgr/internal_test.go @@ -7,7 +7,7 @@ package addrmgr import ( "time" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) func TstKnownAddressIsBad(ka *KnownAddress) bool { diff --git a/addrmgr/knownaddress.go b/addrmgr/knownaddress.go index 15469f37..55a955ed 100644 --- a/addrmgr/knownaddress.go +++ b/addrmgr/knownaddress.go @@ -7,7 +7,7 @@ package addrmgr import ( "time" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // KnownAddress tracks information about a known network address that is used diff --git a/addrmgr/network.go b/addrmgr/network.go index 51bfa3ed..878bc2b1 100644 --- a/addrmgr/network.go +++ b/addrmgr/network.go @@ -8,7 +8,7 @@ import ( "fmt" "net" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) var ( diff --git a/addrmgr/network_test.go b/addrmgr/network_test.go index 8af3369f..6f2565fe 100644 --- a/addrmgr/network_test.go +++ b/addrmgr/network_test.go @@ -8,8 +8,8 @@ import ( "net" "testing" - "github.com/btcsuite/btcd/addrmgr" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/addrmgr" + "github.com/lbryio/lbcd/wire" ) // TestIPTypes ensures the various functions which determine the type of an IP diff --git a/blockchain/accept.go b/blockchain/accept.go index f85d6558..d6153ebb 100644 --- a/blockchain/accept.go +++ b/blockchain/accept.go @@ -7,7 +7,7 @@ package blockchain import ( "fmt" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/database" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/blockindex.go b/blockchain/blockindex.go index 1531e6b1..eb7c01a7 100644 --- a/blockchain/blockindex.go +++ b/blockchain/blockindex.go @@ -10,10 +10,10 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" ) // blockStatus is a bit field representing the validation state of the block. diff --git a/blockchain/chain.go b/blockchain/chain.go index 8ffc4046..a6a9d90f 100644 --- a/blockchain/chain.go +++ b/blockchain/chain.go @@ -11,14 +11,14 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcd/claimtrie" + "github.com/lbryio/lbcd/claimtrie" ) const ( diff --git a/blockchain/chainio.go b/blockchain/chainio.go index f40ba465..ab2d302f 100644 --- a/blockchain/chainio.go +++ b/blockchain/chainio.go @@ -12,9 +12,9 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/chainio_test.go b/blockchain/chainio_test.go index 630af14e..76881a33 100644 --- a/blockchain/chainio_test.go +++ b/blockchain/chainio_test.go @@ -11,8 +11,8 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" ) // TestErrNotInMainChain ensures the functions related to errNotInMainChain work diff --git a/blockchain/chainview_test.go b/blockchain/chainview_test.go index c59004fd..746bf1bd 100644 --- a/blockchain/chainview_test.go +++ b/blockchain/chainview_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // testNoncePrng provides a deterministic prng for the nonce in generated fake diff --git a/blockchain/checkpoints.go b/blockchain/checkpoints.go index af3b6d92..7eb808e6 100644 --- a/blockchain/checkpoints.go +++ b/blockchain/checkpoints.go @@ -8,9 +8,9 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/claimtrie.go b/blockchain/claimtrie.go index 1032860d..2cfbefa8 100644 --- a/blockchain/claimtrie.go +++ b/blockchain/claimtrie.go @@ -6,14 +6,14 @@ import ( "github.com/pkg/errors" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcd/claimtrie" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/node" - "github.com/btcsuite/btcd/claimtrie/normalization" + "github.com/lbryio/lbcd/claimtrie" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/normalization" ) func (b *BlockChain) SetClaimtrieHeader(block *btcutil.Block, view *UtxoViewpoint) error { diff --git a/blockchain/common_test.go b/blockchain/common_test.go index dd392a66..585dd394 100644 --- a/blockchain/common_test.go +++ b/blockchain/common_test.go @@ -14,12 +14,12 @@ import ( "strings" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/compress.go b/blockchain/compress.go index 611b9f09..70aab39b 100644 --- a/blockchain/compress.go +++ b/blockchain/compress.go @@ -5,8 +5,8 @@ package blockchain import ( - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/txscript" ) // ----------------------------------------------------------------------------- diff --git a/blockchain/difficulty.go b/blockchain/difficulty.go index 3eae3844..2f16e2e5 100644 --- a/blockchain/difficulty.go +++ b/blockchain/difficulty.go @@ -8,7 +8,7 @@ import ( "math/big" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) var ( diff --git a/blockchain/fullblocktests/README.md b/blockchain/fullblocktests/README.md index 943989be..de7781dc 100644 --- a/blockchain/fullblocktests/README.md +++ b/blockchain/fullblocktests/README.md @@ -1,9 +1,9 @@ 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) -[![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 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 ```bash -$ go get -u github.com/btcsuite/btcd/blockchain/fullblocktests +$ go get -u github.com/lbryio/lbcd/blockchain/fullblocktests ``` ## License diff --git a/blockchain/fullblocktests/generate.go b/blockchain/fullblocktests/generate.go index 592a14de..621601d2 100644 --- a/blockchain/fullblocktests/generate.go +++ b/blockchain/fullblocktests/generate.go @@ -18,12 +18,12 @@ import ( "runtime" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/fullblocktests/params.go b/blockchain/fullblocktests/params.go index 4679036f..fa23e841 100644 --- a/blockchain/fullblocktests/params.go +++ b/blockchain/fullblocktests/params.go @@ -9,9 +9,9 @@ import ( "math/big" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // newHashFromStr converts the passed big-endian hex string into a diff --git a/blockchain/indexers/README.md b/blockchain/indexers/README.md index f4849152..989cb555 100644 --- a/blockchain/indexers/README.md +++ b/blockchain/indexers/README.md @@ -1,9 +1,9 @@ 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) -[![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. @@ -23,7 +23,7 @@ via an RPC interface. ## Installation ```bash -$ go get -u github.com/btcsuite/btcd/blockchain/indexers +$ go get -u github.com/lbryio/lbcd/blockchain/indexers ``` ## License diff --git a/blockchain/indexers/addrindex.go b/blockchain/indexers/addrindex.go index 4a9bf4ec..4acfe905 100644 --- a/blockchain/indexers/addrindex.go +++ b/blockchain/indexers/addrindex.go @@ -9,12 +9,12 @@ import ( "fmt" "sync" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/indexers/addrindex_test.go b/blockchain/indexers/addrindex_test.go index e545887f..584ed1cc 100644 --- a/blockchain/indexers/addrindex_test.go +++ b/blockchain/indexers/addrindex_test.go @@ -9,7 +9,7 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // addrIndexBucket provides a mock address index database bucket by implementing diff --git a/blockchain/indexers/cfindex.go b/blockchain/indexers/cfindex.go index 8ea14728..f10bc26f 100644 --- a/blockchain/indexers/cfindex.go +++ b/blockchain/indexers/cfindex.go @@ -7,11 +7,11 @@ package indexers import ( "errors" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil/gcs" "github.com/btcsuite/btcutil/gcs/builder" diff --git a/blockchain/indexers/common.go b/blockchain/indexers/common.go index a912bb4c..d956be60 100644 --- a/blockchain/indexers/common.go +++ b/blockchain/indexers/common.go @@ -11,8 +11,8 @@ import ( "encoding/binary" "errors" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/database" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/indexers/manager.go b/blockchain/indexers/manager.go index bc0804f8..cc4deb1e 100644 --- a/blockchain/indexers/manager.go +++ b/blockchain/indexers/manager.go @@ -8,10 +8,10 @@ import ( "bytes" "fmt" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/indexers/txindex.go b/blockchain/indexers/txindex.go index 00cfd006..1ff3e369 100644 --- a/blockchain/indexers/txindex.go +++ b/blockchain/indexers/txindex.go @@ -8,10 +8,10 @@ import ( "errors" "fmt" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/merkle.go b/blockchain/merkle.go index f4b902f1..0c98495d 100644 --- a/blockchain/merkle.go +++ b/blockchain/merkle.go @@ -9,8 +9,8 @@ import ( "fmt" "math" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/process.go b/blockchain/process.go index 6d2161bb..3998b32e 100644 --- a/blockchain/process.go +++ b/blockchain/process.go @@ -8,8 +8,8 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/scriptval.go b/blockchain/scriptval.go index 8ba59a42..4209753e 100644 --- a/blockchain/scriptval.go +++ b/blockchain/scriptval.go @@ -10,8 +10,8 @@ import ( "runtime" "time" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/thresholdstate.go b/blockchain/thresholdstate.go index 8a79f968..ac652eff 100644 --- a/blockchain/thresholdstate.go +++ b/blockchain/thresholdstate.go @@ -7,7 +7,7 @@ package blockchain import ( "fmt" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // ThresholdState define the various threshold states used when voting on diff --git a/blockchain/thresholdstate_test.go b/blockchain/thresholdstate_test.go index c65f5a44..5eecc61e 100644 --- a/blockchain/thresholdstate_test.go +++ b/blockchain/thresholdstate_test.go @@ -7,7 +7,7 @@ package blockchain import ( "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // TestThresholdStateStringer tests the stringized output for the diff --git a/blockchain/upgrade.go b/blockchain/upgrade.go index 253ca62e..a899cb4e 100644 --- a/blockchain/upgrade.go +++ b/blockchain/upgrade.go @@ -11,9 +11,9 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" ) const ( diff --git a/blockchain/utxoviewpoint.go b/blockchain/utxoviewpoint.go index b8576581..b35604c6 100644 --- a/blockchain/utxoviewpoint.go +++ b/blockchain/utxoviewpoint.go @@ -7,10 +7,10 @@ package blockchain import ( "fmt" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/validate.go b/blockchain/validate.go index 4a2e45e1..4fbeb868 100644 --- a/blockchain/validate.go +++ b/blockchain/validate.go @@ -11,10 +11,10 @@ import ( "math/big" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/blockchain/versionbits.go b/blockchain/versionbits.go index acdbf144..ddf1cace 100644 --- a/blockchain/versionbits.go +++ b/blockchain/versionbits.go @@ -7,7 +7,7 @@ package blockchain import ( "math" - "github.com/btcsuite/btcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg" ) const ( diff --git a/blockchain/weight.go b/blockchain/weight.go index a2a07507..d601be85 100644 --- a/blockchain/weight.go +++ b/blockchain/weight.go @@ -7,8 +7,8 @@ package blockchain import ( "fmt" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/btcd.go b/btcd.go index 19ef61eb..cee4edb9 100644 --- a/btcd.go +++ b/btcd.go @@ -15,10 +15,10 @@ import ( "runtime/debug" "runtime/pprof" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/claimtrie/param" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/limits" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/claimtrie/param" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/limits" "github.com/felixge/fgprof" ) diff --git a/btcec/example_test.go b/btcec/example_test.go index ca51ee87..cea8d771 100644 --- a/btcec/example_test.go +++ b/btcec/example_test.go @@ -8,8 +8,8 @@ import ( "encoding/hex" "fmt" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // This example demonstrates signing a message with a secp256k1 private key that diff --git a/btcec/genprecomps.go b/btcec/genprecomps.go index d4a9c1b8..f09ab311 100644 --- a/btcec/genprecomps.go +++ b/btcec/genprecomps.go @@ -17,7 +17,7 @@ import ( "log" "os" - "github.com/btcsuite/btcd/btcec" + "github.com/lbryio/lbcd/btcec" ) func main() { diff --git a/btcjson/btcdextcmds_test.go b/btcjson/btcdextcmds_test.go index aaa44144..8aadb0af 100644 --- a/btcjson/btcdextcmds_test.go +++ b/btcjson/btcdextcmds_test.go @@ -12,7 +12,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestBtcdExtCmds tests all of the btcd extended commands marshal and unmarshal diff --git a/btcjson/btcdextresults_test.go b/btcjson/btcdextresults_test.go index 478f088c..55327dce 100644 --- a/btcjson/btcdextresults_test.go +++ b/btcjson/btcdextresults_test.go @@ -9,7 +9,7 @@ import ( "encoding/json" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestBtcdExtCustomResults ensures any results that have custom marshalling diff --git a/btcjson/btcwalletextcmds_test.go b/btcjson/btcwalletextcmds_test.go index dea1c614..fe3b54c0 100644 --- a/btcjson/btcwalletextcmds_test.go +++ b/btcjson/btcwalletextcmds_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestBtcWalletExtCmds tests all of the btcwallet extended commands marshal and diff --git a/btcjson/chainsvrcmds.go b/btcjson/chainsvrcmds.go index aa1d4415..0cfb2e17 100644 --- a/btcjson/chainsvrcmds.go +++ b/btcjson/chainsvrcmds.go @@ -13,7 +13,7 @@ import ( "fmt" "reflect" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // AddNodeSubCmd defines the type used in the addnode JSON-RPC command for the diff --git a/btcjson/chainsvrcmds_test.go b/btcjson/chainsvrcmds_test.go index a4a3d4c2..95320dbd 100644 --- a/btcjson/chainsvrcmds_test.go +++ b/btcjson/chainsvrcmds_test.go @@ -12,8 +12,8 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/wire" ) // TestChainSvrCmds tests all of the chain server commands marshal and unmarshal diff --git a/btcjson/chainsvrresults.go b/btcjson/chainsvrresults.go index 5c9c9b93..7c15ad4e 100644 --- a/btcjson/chainsvrresults.go +++ b/btcjson/chainsvrresults.go @@ -9,9 +9,9 @@ import ( "encoding/hex" "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" ) diff --git a/btcjson/chainsvrresults_test.go b/btcjson/chainsvrresults_test.go index af47ccab..7018786e 100644 --- a/btcjson/chainsvrresults_test.go +++ b/btcjson/chainsvrresults_test.go @@ -9,8 +9,8 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" "github.com/davecgh/go-spew/spew" ) diff --git a/btcjson/chainsvrwscmds_test.go b/btcjson/chainsvrwscmds_test.go index 03fb22c8..688c3900 100644 --- a/btcjson/chainsvrwscmds_test.go +++ b/btcjson/chainsvrwscmds_test.go @@ -12,7 +12,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestChainSvrWsCmds tests all of the chain server websocket-specific commands diff --git a/btcjson/chainsvrwsntfns_test.go b/btcjson/chainsvrwsntfns_test.go index e2b234c2..ed6902dc 100644 --- a/btcjson/chainsvrwsntfns_test.go +++ b/btcjson/chainsvrwsntfns_test.go @@ -12,7 +12,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestChainSvrWsNtfns tests all of the chain server websocket-specific diff --git a/btcjson/chainsvrwsresults_test.go b/btcjson/chainsvrwsresults_test.go index b1e17450..21e1f2ff 100644 --- a/btcjson/chainsvrwsresults_test.go +++ b/btcjson/chainsvrwsresults_test.go @@ -9,7 +9,7 @@ import ( "encoding/json" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestChainSvrWsResults ensures any results that have custom marshalling diff --git a/btcjson/example_test.go b/btcjson/example_test.go index 74478e74..7974ba0e 100644 --- a/btcjson/example_test.go +++ b/btcjson/example_test.go @@ -8,7 +8,7 @@ import ( "encoding/json" "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 diff --git a/btcjson/helpers_test.go b/btcjson/helpers_test.go index 7bcaf4bc..9023c2e4 100644 --- a/btcjson/helpers_test.go +++ b/btcjson/helpers_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestHelpers tests the various helper functions which create pointers to diff --git a/btcjson/jsonrpc_test.go b/btcjson/jsonrpc_test.go index 13d98e89..b7229d35 100644 --- a/btcjson/jsonrpc_test.go +++ b/btcjson/jsonrpc_test.go @@ -9,7 +9,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestIsValidIDType ensures the IsValidIDType function behaves as expected. diff --git a/btcjson/walletsvrcmds_test.go b/btcjson/walletsvrcmds_test.go index 9c68d260..67570c3b 100644 --- a/btcjson/walletsvrcmds_test.go +++ b/btcjson/walletsvrcmds_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" "github.com/btcsuite/btcutil" ) diff --git a/btcjson/walletsvrresults.go b/btcjson/walletsvrresults.go index 78a6e647..16df09bb 100644 --- a/btcjson/walletsvrresults.go +++ b/btcjson/walletsvrresults.go @@ -8,7 +8,7 @@ import ( "encoding/json" "fmt" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/txscript" ) // CreateWalletResult models the result of the createwallet command. diff --git a/btcjson/walletsvrresults_test.go b/btcjson/walletsvrresults_test.go index fd44b066..d7401c1d 100644 --- a/btcjson/walletsvrresults_test.go +++ b/btcjson/walletsvrresults_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/txscript" "github.com/davecgh/go-spew/spew" ) diff --git a/btcjson/walletsvrwscmds_test.go b/btcjson/walletsvrwscmds_test.go index 110a893b..3c9751fc 100644 --- a/btcjson/walletsvrwscmds_test.go +++ b/btcjson/walletsvrwscmds_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestWalletSvrWsCmds tests all of the wallet server websocket-specific diff --git a/btcjson/walletsvrwsntfns_test.go b/btcjson/walletsvrwsntfns_test.go index 11191662..51839c68 100644 --- a/btcjson/walletsvrwsntfns_test.go +++ b/btcjson/walletsvrwsntfns_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // TestWalletSvrWsNtfns tests all of the chain server websocket-specific diff --git a/chaincfg/chainhash/README.md b/chaincfg/chainhash/README.md index b7ddf19e..da54f734 100644 --- a/chaincfg/chainhash/README.md +++ b/chaincfg/chainhash/README.md @@ -1,9 +1,9 @@ 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) -[![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 @@ -12,7 +12,7 @@ specific hash algorithm to be abstracted. ## Installation and Updating ```bash -$ go get -u github.com/btcsuite/btcd/chaincfg/chainhash +$ go get -u github.com/lbryio/lbcd/chaincfg/chainhash ``` ## GPG Verification Key diff --git a/chaincfg/doc.go b/chaincfg/doc.go index 3659adbf..4d33ffab 100644 --- a/chaincfg/doc.go +++ b/chaincfg/doc.go @@ -26,7 +26,7 @@ // "log" // // "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") diff --git a/chaincfg/genesis.go b/chaincfg/genesis.go index 2c2a043e..a4df289d 100644 --- a/chaincfg/genesis.go +++ b/chaincfg/genesis.go @@ -7,8 +7,8 @@ package chaincfg import ( "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // genesisCoinbaseTx is the coinbase transaction for the genesis blocks for diff --git a/chaincfg/params.go b/chaincfg/params.go index 68c362d5..b2144963 100644 --- a/chaincfg/params.go +++ b/chaincfg/params.go @@ -13,8 +13,8 @@ import ( "strings" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // These variables are the chain proof-of-work limit parameters for each default diff --git a/chaincfg/register_test.go b/chaincfg/register_test.go index bcb5b3c6..700a63ff 100644 --- a/chaincfg/register_test.go +++ b/chaincfg/register_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - . "github.com/btcsuite/btcd/chaincfg" + . "github.com/lbryio/lbcd/chaincfg" ) // Define some of the required parameters for a user-registered diff --git a/claimtrie/block/blockrepo/pebble.go b/claimtrie/block/blockrepo/pebble.go index 9a3ea7a6..44d4ce94 100644 --- a/claimtrie/block/blockrepo/pebble.go +++ b/claimtrie/block/blockrepo/pebble.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "github.com/pkg/errors" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/cockroachdb/pebble" ) diff --git a/claimtrie/block/repo.go b/claimtrie/block/repo.go index fb5a8c9e..eaa0b7d1 100644 --- a/claimtrie/block/repo.go +++ b/claimtrie/block/repo.go @@ -1,7 +1,7 @@ package block import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // Repo defines APIs for Block to access persistence layer. diff --git a/claimtrie/chain/chainrepo/pebble.go b/claimtrie/chain/chainrepo/pebble.go index 4dc9e96f..51c89272 100644 --- a/claimtrie/chain/chainrepo/pebble.go +++ b/claimtrie/chain/chainrepo/pebble.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/btcsuite/btcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/change" "github.com/vmihailenco/msgpack/v5" "github.com/cockroachdb/pebble" diff --git a/claimtrie/chain/repo.go b/claimtrie/chain/repo.go index 90a59d80..7d3aa978 100644 --- a/claimtrie/chain/repo.go +++ b/claimtrie/chain/repo.go @@ -1,6 +1,6 @@ package chain -import "github.com/btcsuite/btcd/claimtrie/change" +import "github.com/lbryio/lbcd/claimtrie/change" type Repo interface { Save(height int32, changes []change.Change) error diff --git a/claimtrie/change/change.go b/claimtrie/change/change.go index 0f9c4151..451f4ef8 100644 --- a/claimtrie/change/change.go +++ b/claimtrie/change/change.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/binary" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) type ChangeType uint32 diff --git a/claimtrie/change/claimid.go b/claimtrie/change/claimid.go index f6d0ebd7..ef123fe5 100644 --- a/claimtrie/change/claimid.go +++ b/claimtrie/change/claimid.go @@ -3,8 +3,8 @@ package change import ( "encoding/binary" "encoding/hex" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/claimtrie/claimtrie.go b/claimtrie/claimtrie.go index 8acf71ef..555fd2d0 100644 --- a/claimtrie/claimtrie.go +++ b/claimtrie/claimtrie.go @@ -10,21 +10,21 @@ import ( "github.com/pkg/errors" - "github.com/btcsuite/btcd/claimtrie/block" - "github.com/btcsuite/btcd/claimtrie/block/blockrepo" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/config" - "github.com/btcsuite/btcd/claimtrie/merkletrie" - "github.com/btcsuite/btcd/claimtrie/merkletrie/merkletrierepo" - "github.com/btcsuite/btcd/claimtrie/node" - "github.com/btcsuite/btcd/claimtrie/node/noderepo" - "github.com/btcsuite/btcd/claimtrie/normalization" - "github.com/btcsuite/btcd/claimtrie/param" - "github.com/btcsuite/btcd/claimtrie/temporal" - "github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" + "github.com/lbryio/lbcd/claimtrie/block" + "github.com/lbryio/lbcd/claimtrie/block/blockrepo" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/config" + "github.com/lbryio/lbcd/claimtrie/merkletrie" + "github.com/lbryio/lbcd/claimtrie/merkletrie/merkletrierepo" + "github.com/lbryio/lbcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/node/noderepo" + "github.com/lbryio/lbcd/claimtrie/normalization" + "github.com/lbryio/lbcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/temporal" + "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // ClaimTrie implements a Merkle Trie supporting linear history of commits. diff --git a/claimtrie/claimtrie_test.go b/claimtrie/claimtrie_test.go index fe61f4f7..9ca6b780 100644 --- a/claimtrie/claimtrie_test.go +++ b/claimtrie/claimtrie_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/config" - "github.com/btcsuite/btcd/claimtrie/merkletrie" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/config" + "github.com/lbryio/lbcd/claimtrie/merkletrie" + "github.com/lbryio/lbcd/claimtrie/param" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/stretchr/testify/require" ) diff --git a/claimtrie/cmd/cmd/chain.go b/claimtrie/cmd/cmd/chain.go index 89bab4e6..1c699323 100644 --- a/claimtrie/cmd/cmd/chain.go +++ b/claimtrie/cmd/cmd/chain.go @@ -6,16 +6,16 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/claimtrie" - "github.com/btcsuite/btcd/claimtrie/chain" - "github.com/btcsuite/btcd/claimtrie/chain/chainrepo" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/config" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/claimtrie" + "github.com/lbryio/lbcd/claimtrie/chain" + "github.com/lbryio/lbcd/claimtrie/chain/chainrepo" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/config" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/cockroachdb/errors" diff --git a/claimtrie/cmd/cmd/helper.go b/claimtrie/cmd/cmd/helper.go index e71b4bbb..e75da402 100644 --- a/claimtrie/cmd/cmd/helper.go +++ b/claimtrie/cmd/cmd/helper.go @@ -4,10 +4,10 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" "github.com/cockroachdb/errors" ) diff --git a/claimtrie/cmd/cmd/merkletrie.go b/claimtrie/cmd/cmd/merkletrie.go index 503a8762..66694c98 100644 --- a/claimtrie/cmd/cmd/merkletrie.go +++ b/claimtrie/cmd/cmd/merkletrie.go @@ -4,9 +4,9 @@ import ( "fmt" "path/filepath" - "github.com/btcsuite/btcd/claimtrie/merkletrie" - "github.com/btcsuite/btcd/claimtrie/merkletrie/merkletrierepo" - "github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" + "github.com/lbryio/lbcd/claimtrie/merkletrie" + "github.com/lbryio/lbcd/claimtrie/merkletrie/merkletrierepo" + "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo" "github.com/cockroachdb/errors" "github.com/spf13/cobra" diff --git a/claimtrie/cmd/cmd/node.go b/claimtrie/cmd/cmd/node.go index 1e37db6b..489fc846 100644 --- a/claimtrie/cmd/cmd/node.go +++ b/claimtrie/cmd/cmd/node.go @@ -6,9 +6,9 @@ import ( "math" "path/filepath" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/node" - "github.com/btcsuite/btcd/claimtrie/node/noderepo" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/node/noderepo" "github.com/cockroachdb/errors" "github.com/spf13/cobra" diff --git a/claimtrie/cmd/cmd/root.go b/claimtrie/cmd/cmd/root.go index f5b8fd74..4be3d3a7 100644 --- a/claimtrie/cmd/cmd/root.go +++ b/claimtrie/cmd/cmd/root.go @@ -3,9 +3,9 @@ package cmd import ( "os" - "github.com/btcsuite/btcd/claimtrie/config" - "github.com/btcsuite/btcd/claimtrie/param" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/claimtrie/config" + "github.com/lbryio/lbcd/claimtrie/param" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btclog" "github.com/spf13/cobra" diff --git a/claimtrie/cmd/cmd/temporal.go b/claimtrie/cmd/cmd/temporal.go index 0024deb0..52613fcd 100644 --- a/claimtrie/cmd/cmd/temporal.go +++ b/claimtrie/cmd/cmd/temporal.go @@ -3,7 +3,7 @@ package cmd import ( "path/filepath" - "github.com/btcsuite/btcd/claimtrie/temporal/temporalrepo" + "github.com/lbryio/lbcd/claimtrie/temporal/temporalrepo" "github.com/cockroachdb/errors" "github.com/spf13/cobra" diff --git a/claimtrie/cmd/cmd/ui.go b/claimtrie/cmd/cmd/ui.go index b7a530a1..9882b474 100644 --- a/claimtrie/cmd/cmd/ui.go +++ b/claimtrie/cmd/cmd/ui.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/node" ) var status = map[node.Status]string{ diff --git a/claimtrie/cmd/main.go b/claimtrie/cmd/main.go index a9fb8f59..b87adc7d 100644 --- a/claimtrie/cmd/main.go +++ b/claimtrie/cmd/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/btcsuite/btcd/claimtrie/cmd/cmd" + "github.com/lbryio/lbcd/claimtrie/cmd/cmd" ) func main() { diff --git a/claimtrie/config/config.go b/claimtrie/config/config.go index 4a297e7b..cf49127c 100644 --- a/claimtrie/config/config.go +++ b/claimtrie/config/config.go @@ -3,7 +3,7 @@ package config import ( "path/filepath" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/param" "github.com/btcsuite/btcutil" ) diff --git a/claimtrie/merkletrie/collapsedtrie.go b/claimtrie/merkletrie/collapsedtrie.go index 1d070f1d..18af30a0 100644 --- a/claimtrie/merkletrie/collapsedtrie.go +++ b/claimtrie/merkletrie/collapsedtrie.go @@ -1,7 +1,7 @@ package merkletrie import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) type KeyType []byte diff --git a/claimtrie/merkletrie/merkletrie.go b/claimtrie/merkletrie/merkletrie.go index a611fac7..a35eb870 100644 --- a/claimtrie/merkletrie/merkletrie.go +++ b/claimtrie/merkletrie/merkletrie.go @@ -8,8 +8,8 @@ import ( "sort" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/node" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/node" ) var ( diff --git a/claimtrie/merkletrie/merkletrie_test.go b/claimtrie/merkletrie/merkletrie_test.go index 1fdb6b04..fc95a7b4 100644 --- a/claimtrie/merkletrie/merkletrie_test.go +++ b/claimtrie/merkletrie/merkletrie_test.go @@ -3,8 +3,8 @@ package merkletrie import ( "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/node" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/node" "github.com/stretchr/testify/require" ) diff --git a/claimtrie/merkletrie/ramtrie.go b/claimtrie/merkletrie/ramtrie.go index 5022b335..2ae6bcc1 100644 --- a/claimtrie/merkletrie/ramtrie.go +++ b/claimtrie/merkletrie/ramtrie.go @@ -6,8 +6,8 @@ import ( "runtime" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/node" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/node" ) type MerkleTrie interface { diff --git a/claimtrie/merkletrie/vertex.go b/claimtrie/merkletrie/vertex.go index c006de53..77f1f04a 100644 --- a/claimtrie/merkletrie/vertex.go +++ b/claimtrie/merkletrie/vertex.go @@ -1,7 +1,7 @@ package merkletrie import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) type vertex struct { diff --git a/claimtrie/node/claim.go b/claimtrie/node/claim.go index c138e656..8f385913 100644 --- a/claimtrie/node/claim.go +++ b/claimtrie/node/claim.go @@ -5,10 +5,10 @@ import ( "strconv" "strings" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/param" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/param" + "github.com/lbryio/lbcd/wire" ) type Status int diff --git a/claimtrie/node/claim_list.go b/claimtrie/node/claim_list.go index d1f863da..007a1b6b 100644 --- a/claimtrie/node/claim_list.go +++ b/claimtrie/node/claim_list.go @@ -1,8 +1,8 @@ package node import ( - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/wire" ) type ClaimList []*Claim diff --git a/claimtrie/node/hashfork_manager.go b/claimtrie/node/hashfork_manager.go index b3271e2c..bbd814ee 100644 --- a/claimtrie/node/hashfork_manager.go +++ b/claimtrie/node/hashfork_manager.go @@ -1,8 +1,8 @@ package node import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/param" ) type HashV2Manager struct { diff --git a/claimtrie/node/hashfunc.go b/claimtrie/node/hashfunc.go index 9c978492..deec78bb 100644 --- a/claimtrie/node/hashfunc.go +++ b/claimtrie/node/hashfunc.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "strconv" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) func HashMerkleBranches(left *chainhash.Hash, right *chainhash.Hash) *chainhash.Hash { diff --git a/claimtrie/node/manager.go b/claimtrie/node/manager.go index 88c12127..6dc2b689 100644 --- a/claimtrie/node/manager.go +++ b/claimtrie/node/manager.go @@ -5,9 +5,9 @@ import ( "github.com/pkg/errors" "sort" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/param" ) type Manager interface { diff --git a/claimtrie/node/manager_test.go b/claimtrie/node/manager_test.go index 9088c8d4..0f5ca93e 100644 --- a/claimtrie/node/manager_test.go +++ b/claimtrie/node/manager_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/node/noderepo" - "github.com/btcsuite/btcd/claimtrie/param" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/node/noderepo" + "github.com/lbryio/lbcd/claimtrie/param" + "github.com/lbryio/lbcd/wire" "github.com/stretchr/testify/require" ) diff --git a/claimtrie/node/node.go b/claimtrie/node/node.go index f48dee3c..34f0b60c 100644 --- a/claimtrie/node/node.go +++ b/claimtrie/node/node.go @@ -5,8 +5,8 @@ import ( "math" "sort" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/param" ) type Node struct { diff --git a/claimtrie/node/noderepo/noderepo_test.go b/claimtrie/node/noderepo/noderepo_test.go index 385fa44e..fb0a9764 100644 --- a/claimtrie/node/noderepo/noderepo_test.go +++ b/claimtrie/node/noderepo/noderepo_test.go @@ -3,8 +3,8 @@ package noderepo import ( "testing" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/node" "github.com/stretchr/testify/require" ) diff --git a/claimtrie/node/noderepo/pebble.go b/claimtrie/node/noderepo/pebble.go index a988c486..0f26247d 100644 --- a/claimtrie/node/noderepo/pebble.go +++ b/claimtrie/node/noderepo/pebble.go @@ -4,7 +4,7 @@ import ( "bytes" "sort" - "github.com/btcsuite/btcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/change" "github.com/cockroachdb/pebble" "github.com/pkg/errors" ) diff --git a/claimtrie/node/normalizing_manager.go b/claimtrie/node/normalizing_manager.go index fe460c52..92bb5d9f 100644 --- a/claimtrie/node/normalizing_manager.go +++ b/claimtrie/node/normalizing_manager.go @@ -3,9 +3,9 @@ package node import ( "bytes" - "github.com/btcsuite/btcd/claimtrie/change" - "github.com/btcsuite/btcd/claimtrie/normalization" - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/normalization" + "github.com/lbryio/lbcd/claimtrie/param" ) type NormalizingManager struct { // implements Manager diff --git a/claimtrie/node/repo.go b/claimtrie/node/repo.go index 87db4cce..4aaa65e8 100644 --- a/claimtrie/node/repo.go +++ b/claimtrie/node/repo.go @@ -1,7 +1,7 @@ package node import ( - "github.com/btcsuite/btcd/claimtrie/change" + "github.com/lbryio/lbcd/claimtrie/change" ) // Repo defines APIs for Node to access persistence layer. diff --git a/claimtrie/normalization/normalizer.go b/claimtrie/normalization/normalizer.go index caccc43e..ac426c58 100644 --- a/claimtrie/normalization/normalizer.go +++ b/claimtrie/normalization/normalizer.go @@ -1,7 +1,7 @@ package normalization import ( - "github.com/btcsuite/btcd/claimtrie/param" + "github.com/lbryio/lbcd/claimtrie/param" "golang.org/x/text/unicode/norm" ) diff --git a/claimtrie/param/general.go b/claimtrie/param/general.go index 5253dcbe..92ff06fe 100644 --- a/claimtrie/param/general.go +++ b/claimtrie/param/general.go @@ -1,6 +1,6 @@ package param -import "github.com/btcsuite/btcd/wire" +import "github.com/lbryio/lbcd/wire" type ClaimTrieParams struct { MaxActiveDelay int32 diff --git a/claimtrie/temporal/temporalrepo/temporalrepo_test.go b/claimtrie/temporal/temporalrepo/temporalrepo_test.go index e8428a69..090dc187 100644 --- a/claimtrie/temporal/temporalrepo/temporalrepo_test.go +++ b/claimtrie/temporal/temporalrepo/temporalrepo_test.go @@ -3,7 +3,7 @@ package temporalrepo import ( "testing" - "github.com/btcsuite/btcd/claimtrie/temporal" + "github.com/lbryio/lbcd/claimtrie/temporal" "github.com/stretchr/testify/require" ) diff --git a/cmd/addblock/addblock.go b/cmd/addblock/addblock.go index 8b44f307..04a7cf86 100644 --- a/cmd/addblock/addblock.go +++ b/cmd/addblock/addblock.go @@ -8,10 +8,10 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/limits" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/limits" "github.com/btcsuite/btclog" ) diff --git a/cmd/addblock/config.go b/cmd/addblock/config.go index 26b352d6..09d381d0 100644 --- a/cmd/addblock/config.go +++ b/cmd/addblock/config.go @@ -9,10 +9,10 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" flags "github.com/jessevdk/go-flags" ) diff --git a/cmd/addblock/import.go b/cmd/addblock/import.go index b7a30369..88958399 100644 --- a/cmd/addblock/import.go +++ b/cmd/addblock/import.go @@ -11,11 +11,11 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/cmd/findcheckpoint/config.go b/cmd/findcheckpoint/config.go index 18f54e22..f50fbc80 100644 --- a/cmd/findcheckpoint/config.go +++ b/cmd/findcheckpoint/config.go @@ -9,10 +9,10 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" flags "github.com/jessevdk/go-flags" ) diff --git a/cmd/findcheckpoint/findcheckpoint.go b/cmd/findcheckpoint/findcheckpoint.go index ec4a4b30..ae307148 100644 --- a/cmd/findcheckpoint/findcheckpoint.go +++ b/cmd/findcheckpoint/findcheckpoint.go @@ -9,10 +9,10 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" ) const blockDbNamePrefix = "blocks" diff --git a/cmd/lbcctl/btcctl.go b/cmd/lbcctl/btcctl.go index 771d5f7e..79349186 100644 --- a/cmd/lbcctl/btcctl.go +++ b/cmd/lbcctl/btcctl.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) const ( diff --git a/cmd/lbcctl/config.go b/cmd/lbcctl/config.go index e3726551..83e660da 100644 --- a/cmd/lbcctl/config.go +++ b/cmd/lbcctl/config.go @@ -13,8 +13,8 @@ import ( "regexp" "strings" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" "github.com/btcsuite/btcutil" flags "github.com/jessevdk/go-flags" ) diff --git a/cmd/lbcctl/httpclient.go b/cmd/lbcctl/httpclient.go index 2a0f6dff..c9259004 100644 --- a/cmd/lbcctl/httpclient.go +++ b/cmd/lbcctl/httpclient.go @@ -10,7 +10,7 @@ import ( "net" "net/http" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" "github.com/btcsuite/go-socks/socks" ) diff --git a/config.go b/config.go index a194caea..03f60168 100644 --- a/config.go +++ b/config.go @@ -21,14 +21,14 @@ import ( "strings" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/connmgr" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/peer" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/connmgr" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/peer" "github.com/btcsuite/btcutil" "github.com/btcsuite/go-socks/socks" flags "github.com/jessevdk/go-flags" diff --git a/connmgr/seed.go b/connmgr/seed.go index 063b546a..b35d2a1a 100644 --- a/connmgr/seed.go +++ b/connmgr/seed.go @@ -11,8 +11,8 @@ import ( "strconv" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/wire" ) const ( diff --git a/database/README.md b/database/README.md index 3f900d91..6e937304 100644 --- a/database/README.md +++ b/database/README.md @@ -11,8 +11,8 @@ one entity can have the database open at a time (for most database backends), and that entity will be btcd. 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) -package which makes use of the [JSON-RPC API](https://github.com/btcsuite/btcd/tree/master/docs/json_rpc_api.md). +likely want to use the [rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) +package which makes use of the [JSON-RPC API](https://github.com/lbryio/lbcd/tree/master/docs/json_rpc_api.md). However, this package could be extremely useful for any applications requiring Bitcoin block storage capabilities. diff --git a/database/cmd/dbtool/fetchblock.go b/database/cmd/dbtool/fetchblock.go index 75a3e31a..b2ac4893 100644 --- a/database/cmd/dbtool/fetchblock.go +++ b/database/cmd/dbtool/fetchblock.go @@ -9,8 +9,8 @@ import ( "errors" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" ) // fetchBlockCmd defines the configuration options for the fetchblock command. diff --git a/database/cmd/dbtool/fetchblockregion.go b/database/cmd/dbtool/fetchblockregion.go index 9d63ed17..0204c36b 100644 --- a/database/cmd/dbtool/fetchblockregion.go +++ b/database/cmd/dbtool/fetchblockregion.go @@ -10,8 +10,8 @@ import ( "strconv" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" ) // blockRegionCmd defines the configuration options for the fetchblockregion diff --git a/database/cmd/dbtool/globalconfig.go b/database/cmd/dbtool/globalconfig.go index 80dd97c6..e1bbd7fa 100644 --- a/database/cmd/dbtool/globalconfig.go +++ b/database/cmd/dbtool/globalconfig.go @@ -10,10 +10,10 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/database/cmd/dbtool/insecureimport.go b/database/cmd/dbtool/insecureimport.go index 7564eb68..1756973e 100644 --- a/database/cmd/dbtool/insecureimport.go +++ b/database/cmd/dbtool/insecureimport.go @@ -12,9 +12,9 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/database/cmd/dbtool/loadheaders.go b/database/cmd/dbtool/loadheaders.go index a3ee8c73..00bb5411 100644 --- a/database/cmd/dbtool/loadheaders.go +++ b/database/cmd/dbtool/loadheaders.go @@ -7,8 +7,8 @@ package main import ( "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" ) // headersCmd defines the configuration options for the loadheaders command. diff --git a/database/cmd/dbtool/main.go b/database/cmd/dbtool/main.go index 73c59a6e..c321bfc9 100644 --- a/database/cmd/dbtool/main.go +++ b/database/cmd/dbtool/main.go @@ -9,7 +9,7 @@ import ( "path/filepath" "strings" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/database" "github.com/btcsuite/btclog" flags "github.com/jessevdk/go-flags" ) diff --git a/database/driver_test.go b/database/driver_test.go index 3bb48de1..6d0b00a6 100644 --- a/database/driver_test.go +++ b/database/driver_test.go @@ -8,8 +8,8 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcd/database" - _ "github.com/btcsuite/btcd/database/ffldb" + "github.com/lbryio/lbcd/database" + _ "github.com/lbryio/lbcd/database/ffldb" ) var ( diff --git a/database/ffldb/README.md b/database/ffldb/README.md index 5b855faa..4a43fb73 100644 --- a/database/ffldb/README.md +++ b/database/ffldb/README.md @@ -1,9 +1,9 @@ ffldb ===== -[![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) -[![GoDoc](https://pkg.go.dev/github.com/btcsuite/btcd/database/ffldb?status.png)](https://pkg.go.dev/github.com/btcsuite/btcd/database/ffldb) +[![GoDoc](https://pkg.go.dev/github.com/lbryio/lbcd/database/ffldb?status.png)](https://pkg.go.dev/github.com/lbryio/lbcd/database/ffldb) ======= Package ffldb implements a driver for the database package that uses leveldb for diff --git a/database/ffldb/blockio.go b/database/ffldb/blockio.go index 8fb27ab2..ae71a891 100644 --- a/database/ffldb/blockio.go +++ b/database/ffldb/blockio.go @@ -17,9 +17,9 @@ import ( "path/filepath" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" ) const ( diff --git a/database/ffldb/db.go b/database/ffldb/db.go index c2640854..4008d8a1 100644 --- a/database/ffldb/db.go +++ b/database/ffldb/db.go @@ -14,10 +14,10 @@ import ( "sort" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/database/ffldb/treap" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/database/ffldb/treap" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/goleveldb/leveldb" "github.com/btcsuite/goleveldb/leveldb/comparer" diff --git a/database/ffldb/dbcache.go b/database/ffldb/dbcache.go index 24271e4f..5160cd29 100644 --- a/database/ffldb/dbcache.go +++ b/database/ffldb/dbcache.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/database/ffldb/treap" + "github.com/lbryio/lbcd/database/ffldb/treap" "github.com/btcsuite/goleveldb/leveldb" "github.com/btcsuite/goleveldb/leveldb/iterator" "github.com/btcsuite/goleveldb/leveldb/util" diff --git a/database/ffldb/driver.go b/database/ffldb/driver.go index 28ab8277..5af68953 100644 --- a/database/ffldb/driver.go +++ b/database/ffldb/driver.go @@ -7,8 +7,8 @@ package ffldb import ( "fmt" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btclog" ) diff --git a/database/ffldb/export_test.go b/database/ffldb/export_test.go index 2d8e4d2a..bcad41af 100644 --- a/database/ffldb/export_test.go +++ b/database/ffldb/export_test.go @@ -11,7 +11,7 @@ The functions are only exported while the tests are being run. package ffldb -import "github.com/btcsuite/btcd/database" +import "github.com/lbryio/lbcd/database" // TstRunWithMaxBlockFileSize runs the passed function with the maximum allowed // file size for the database set to the provided value. The value will be set diff --git a/database/ffldb/interface_test.go b/database/ffldb/interface_test.go index 1ce991cc..f8ad7baf 100644 --- a/database/ffldb/interface_test.go +++ b/database/ffldb/interface_test.go @@ -25,10 +25,10 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/database/ffldb/ldbtreapiter.go b/database/ffldb/ldbtreapiter.go index 3db66fb4..072bf43b 100644 --- a/database/ffldb/ldbtreapiter.go +++ b/database/ffldb/ldbtreapiter.go @@ -5,7 +5,7 @@ package ffldb import ( - "github.com/btcsuite/btcd/database/ffldb/treap" + "github.com/lbryio/lbcd/database/ffldb/treap" "github.com/btcsuite/goleveldb/leveldb/iterator" "github.com/btcsuite/goleveldb/leveldb/util" ) diff --git a/database/ffldb/reconcile.go b/database/ffldb/reconcile.go index e2c4d6bb..60456c26 100644 --- a/database/ffldb/reconcile.go +++ b/database/ffldb/reconcile.go @@ -8,7 +8,7 @@ import ( "fmt" "hash/crc32" - "github.com/btcsuite/btcd/database" + "github.com/lbryio/lbcd/database" ) // The serialized write cursor location format is: diff --git a/database/ffldb/treap/README.md b/database/ffldb/treap/README.md index 14c3159a..28f0c810 100644 --- a/database/ffldb/treap/README.md +++ b/database/ffldb/treap/README.md @@ -1,9 +1,9 @@ treap ===== -[![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) -[![GoDoc](https://pkg.go.dev/github.com/btcsuite/btcd/database/internal/treap?status.png)](https://pkg.go.dev/github.com/btcsuite/btcd/database/internal/treap) +[![GoDoc](https://pkg.go.dev/github.com/lbryio/lbcd/database/internal/treap?status.png)](https://pkg.go.dev/github.com/lbryio/lbcd/database/internal/treap) Package treap implements a treap data structure that is used to hold ordered key/value pairs using a combination of binary search tree and heap semantics. diff --git a/database/interface.go b/database/interface.go index 435a8ff5..3290b281 100644 --- a/database/interface.go +++ b/database/interface.go @@ -8,7 +8,7 @@ package database import ( - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" ) diff --git a/docs/json_rpc_api.md b/docs/json_rpc_api.md index 5493c429..36ae6f60 100644 --- a/docs/json_rpc_api.md +++ b/docs/json_rpc_api.md @@ -1067,7 +1067,7 @@ various languages. **9.1 Go** This section provides examples of using the RPC interface using Go and the -[rpcclient](https://github.com/btcsuite/btcd/tree/master/rpcclient) package. +[rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) package. * [Using getblockcount to Retrieve the Current Block Height](#ExampleGetBlockCount) * [Using getblock to Retrieve the Genesis Block](#ExampleGetBlock) @@ -1079,7 +1079,7 @@ This section provides examples of using the RPC interface using Go and the **9.1.1 Using getblockcount to Retrieve the Current Block Height**
The following is an example Go application which uses the -[rpcclient](https://github.com/btcsuite/btcd/tree/master/rpcclient) package to connect with +[rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) package to connect with a lbcd instance via Websockets, issues [getblockcount](#getblockcount) to retrieve the current block height, and displays it. @@ -1091,7 +1091,7 @@ import ( "log" "path/filepath" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/rpcclient" "github.com/btcsuite/btcutil" ) @@ -1141,7 +1141,7 @@ Which results in: **9.1.2 Using getblock to Retrieve the Genesis Block**
The following is an example Go application which uses the -[rpcclient](https://github.com/btcsuite/btcd/tree/master/rpcclient) package to connect with +[rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) package to connect with a lbcd instance via Websockets, issues [getblock](#getblock) to retrieve information about the Genesis block, and display a few details about it. @@ -1154,8 +1154,8 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/rpcclient" "github.com/btcsuite/btcutil" ) @@ -1231,7 +1231,7 @@ Num transactions: 1 Notifications (Websocket-specific)**
The following is an example Go application which uses the -[rpcclient](https://github.com/btcsuite/btcd/tree/master/rpcclient) package to connect with +[rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) package to connect with a lbcd instance via Websockets and registers for [blockconnected](#blockconnected) and [blockdisconnected](#blockdisconnected) notifications with [notifyblocks](#notifyblocks). It also sets up handlers for @@ -1246,8 +1246,8 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/rpcclient" "github.com/btcsuite/btcutil" ) diff --git a/go.mod b/go.mod index 2e43e37e..7476ab6c 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/lbryio/lbcd go 1.16 require ( - github.com/btcsuite/btcd v0.21.0-beta.0.20210526135422-418f9204f49c + github.com/btcsuite/btcd v0.22.0-beta // indirect github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f - github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d + github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd github.com/btcsuite/goleveldb v1.0.0 github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 @@ -17,6 +17,7 @@ require ( github.com/felixge/fgprof v0.9.1 github.com/jessevdk/go-flags v1.4.0 github.com/jrick/logrotate v1.0.0 + github.com/kkdai/bstream v1.0.0 // indirect github.com/pkg/errors v0.9.1 github.com/shirou/gopsutil/v3 v3.21.7 github.com/spf13/cobra v1.1.3 @@ -25,7 +26,3 @@ require ( golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 golang.org/x/text v0.3.6 ) - -replace github.com/btcsuite/btcd => ./ - -replace github.com/btcsuite/btcutil => github.com/lbryio/lbcutil v1.0.3-0.20210528013734-88b0e4495162 diff --git a/go.sum b/go.sum index 52d3fd85..f1abf6ef 100644 --- a/go.sum +++ b/go.sum @@ -38,12 +38,20 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24 github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo= +github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= github.com/btcsuite/goleveldb v1.0.0 h1:Tvd0BfvqX9o823q1j2UZ/epQo09eJh6dTcRp79ilIN4= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/snappy-go v1.0.0 h1:ZxaA6lo2EpxGddsA8JwWOcxlzRybb444sgmeJQMJGQE= github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= @@ -84,6 +92,7 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7 github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -206,6 +215,7 @@ github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbk github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI= github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= @@ -226,8 +236,9 @@ github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiD github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 h1:FOOIBWrEkLgmlgGfMuZT83xIwfPDxEI2OHu6xUmJMFE= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8= +github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.11.7 h1:0hzRabrMN4tSTvMfnL3SCv1ZGeAP23ynzodBgaHeMeg= @@ -242,8 +253,6 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/lbryio/lbcutil v1.0.3-0.20210528013734-88b0e4495162 h1:FUeQ4IkYxstEuZUwPPhXieC68fExYwb4Qb4MsEza4Cs= -github.com/lbryio/lbcutil v1.0.3-0.20210528013734-88b0e4495162/go.mod h1:H98EGYyvMt7dZq4WG8OY4d8z0fTvojuJ4cU3FxAhbx8= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -277,10 +286,12 @@ github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.13.0 h1:M76yO2HkZASFjXL0HSoZJ1AYEmQxNJmY41Jx1zNUq1Y= github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= @@ -373,6 +384,7 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -382,6 +394,7 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 h1:It14KIkyBFYkHkwZ7k45minvA9aorojkyjGk9KJ5B/w= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= diff --git a/integration/README.md b/integration/README.md index 686e160d..db58a898 100644 --- a/integration/README.md +++ b/integration/README.md @@ -4,5 +4,5 @@ integration [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) This contains integration tests which make use of the -[rpctest](https://github.com/btcsuite/btcd/tree/master/integration/rpctest) +[rpctest](https://github.com/lbryio/lbcd/tree/master/integration/rpctest) package to programmatically drive nodes via RPC. diff --git a/integration/rpctest/blockgen.go b/integration/rpctest/blockgen.go index 0d802f5a..02651db0 100644 --- a/integration/rpctest/blockgen.go +++ b/integration/rpctest/blockgen.go @@ -11,12 +11,12 @@ import ( "runtime" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/integration/rpctest/memwallet.go b/integration/rpctest/memwallet.go index 59b0ef4c..4c69163e 100644 --- a/integration/rpctest/memwallet.go +++ b/integration/rpctest/memwallet.go @@ -10,13 +10,13 @@ import ( "fmt" "sync" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/rpcclient" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/rpcclient" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil/hdkeychain" ) diff --git a/integration/rpctest/node.go b/integration/rpctest/node.go index 6682bd19..be0a04eb 100644 --- a/integration/rpctest/node.go +++ b/integration/rpctest/node.go @@ -14,7 +14,7 @@ import ( "runtime" "time" - rpc "github.com/btcsuite/btcd/rpcclient" + rpc "github.com/lbryio/lbcd/rpcclient" "github.com/btcsuite/btcutil" ) diff --git a/integration/rpctest/rpc_harness.go b/integration/rpctest/rpc_harness.go index a0eb3fef..518d262a 100644 --- a/integration/rpctest/rpc_harness.go +++ b/integration/rpctest/rpc_harness.go @@ -16,10 +16,10 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/rpcclient" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/rpcclient" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/integration/rpctest/utils.go b/integration/rpctest/utils.go index d4d76f2e..3273ae3c 100644 --- a/integration/rpctest/utils.go +++ b/integration/rpctest/utils.go @@ -8,8 +8,8 @@ import ( "reflect" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/rpcclient" ) // JoinType is an enum representing a particular type of "node join". A node diff --git a/log.go b/log.go index a69509cd..cc845475 100644 --- a/log.go +++ b/log.go @@ -10,18 +10,18 @@ import ( "os" "path/filepath" - "github.com/btcsuite/btcd/addrmgr" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/claimtrie/node" - "github.com/btcsuite/btcd/connmgr" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/mining/cpuminer" - "github.com/btcsuite/btcd/netsync" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/txscript" + "github.com/lbryio/lbcd/addrmgr" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/claimtrie/node" + "github.com/lbryio/lbcd/connmgr" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/mining/cpuminer" + "github.com/lbryio/lbcd/netsync" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/txscript" "github.com/btcsuite/btclog" "github.com/jrick/logrotate/rotator" diff --git a/mempool/error.go b/mempool/error.go index b0d42be4..7d107ae3 100644 --- a/mempool/error.go +++ b/mempool/error.go @@ -5,8 +5,8 @@ package mempool import ( - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/wire" ) // RuleError identifies a rule violation. It is used to indicate that diff --git a/mempool/estimatefee.go b/mempool/estimatefee.go index 55fe4810..506962aa 100644 --- a/mempool/estimatefee.go +++ b/mempool/estimatefee.go @@ -16,8 +16,8 @@ import ( "strings" "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mining" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mining" "github.com/btcsuite/btcutil" ) diff --git a/mempool/estimatefee_test.go b/mempool/estimatefee_test.go index 16dcfadc..66434b32 100644 --- a/mempool/estimatefee_test.go +++ b/mempool/estimatefee_test.go @@ -9,9 +9,9 @@ import ( "math/rand" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mempool/mempool.go b/mempool/mempool.go index 65d8e8cf..fe9a21e2 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -12,14 +12,14 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mempool/policy.go b/mempool/policy.go index 0197e231..af208306 100644 --- a/mempool/policy.go +++ b/mempool/policy.go @@ -8,9 +8,9 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mining/cpuminer/README.md b/mining/cpuminer/README.md index 47247be9..270e435d 100644 --- a/mining/cpuminer/README.md +++ b/mining/cpuminer/README.md @@ -1,9 +1,9 @@ cpuminer ======== -[![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) -[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/mining/cpuminer) +[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/lbryio/lbcd/mining/cpuminer) ======= ## Overview @@ -16,7 +16,7 @@ now. ## Installation and Updating ```bash -$ go get -u github.com/btcsuite/btcd/mining/cpuminer +$ go get -u github.com/lbryio/lbcd/mining/cpuminer ``` ## License diff --git a/mining/cpuminer/cpuminer.go b/mining/cpuminer/cpuminer.go index 18b5572d..31431683 100644 --- a/mining/cpuminer/cpuminer.go +++ b/mining/cpuminer/cpuminer.go @@ -12,11 +12,11 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mining/mining.go b/mining/mining.go index e67ecf1b..60249192 100644 --- a/mining/mining.go +++ b/mining/mining.go @@ -10,11 +10,11 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mining/policy.go b/mining/policy.go index c3f059c5..3d5efcb7 100644 --- a/mining/policy.go +++ b/mining/policy.go @@ -5,8 +5,8 @@ package mining import ( - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/mining/policy_test.go b/mining/policy_test.go index f66a9c8d..25ae5448 100644 --- a/mining/policy_test.go +++ b/mining/policy_test.go @@ -8,9 +8,9 @@ import ( "encoding/hex" "testing" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/netsync/interface.go b/netsync/interface.go index 3e6ca1c1..0a2179d4 100644 --- a/netsync/interface.go +++ b/netsync/interface.go @@ -5,12 +5,12 @@ package netsync import ( - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/netsync/manager.go b/netsync/manager.go index a56433dd..28cf3be8 100644 --- a/netsync/manager.go +++ b/netsync/manager.go @@ -12,13 +12,13 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/mempool" - peerpkg "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/mempool" + peerpkg "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/params.go b/params.go index 1f85ebc7..36ed1024 100644 --- a/params.go +++ b/params.go @@ -5,8 +5,8 @@ package main import ( - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/wire" ) // activeNetParams is a pointer to the parameters specific to the diff --git a/peer/doc.go b/peer/doc.go index 88fae8e8..1bb8cf32 100644 --- a/peer/doc.go +++ b/peer/doc.go @@ -145,6 +145,6 @@ raw message bytes using a format similar to hexdump -C. Bitcoin Improvement Proposals This package supports all BIPS supported by the wire package. -(https://pkg.go.dev/github.com/btcsuite/btcd/wire#hdr-Bitcoin_Improvement_Proposals) +(https://pkg.go.dev/github.com/lbryio/lbcd/wire#hdr-Bitcoin_Improvement_Proposals) */ package peer diff --git a/peer/example_test.go b/peer/example_test.go index d4662a2b..268ed1ea 100644 --- a/peer/example_test.go +++ b/peer/example_test.go @@ -10,9 +10,9 @@ import ( "net" "time" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/wire" ) // mockRemotePeer creates a basic inbound peer listening on the simnet port for diff --git a/peer/log.go b/peer/log.go index 71bebd0d..f13da67a 100644 --- a/peer/log.go +++ b/peer/log.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btclog" ) diff --git a/peer/peer.go b/peer/peer.go index 47d30959..bc9eb46b 100644 --- a/peer/peer.go +++ b/peer/peer.go @@ -18,10 +18,10 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/go-socks/socks" "github.com/davecgh/go-spew/spew" "github.com/decred/dcrd/lru" diff --git a/rpcadapters.go b/rpcadapters.go index ddcdf79b..613167a5 100644 --- a/rpcadapters.go +++ b/rpcadapters.go @@ -7,12 +7,12 @@ package main import ( "sync/atomic" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/netsync" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/netsync" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcclaimtrie.go b/rpcclaimtrie.go index d58f1cc1..837eafc0 100644 --- a/rpcclaimtrie.go +++ b/rpcclaimtrie.go @@ -6,13 +6,13 @@ import ( "strconv" "strings" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie/node" - "github.com/btcsuite/btcd/claimtrie/normalization" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie/node" + "github.com/lbryio/lbcd/claimtrie/normalization" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" ) var claimtrieHandlers = map[string]commandHandler{ diff --git a/rpcclient/chain.go b/rpcclient/chain.go index d478da7a..3c3693e6 100644 --- a/rpcclient/chain.go +++ b/rpcclient/chain.go @@ -10,9 +10,9 @@ import ( "encoding/hex" "encoding/json" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // FutureGetBestBlockHashResult is a future promise to deliver the result of a diff --git a/rpcclient/doc.go b/rpcclient/doc.go index b682ba10..d82a40a1 100644 --- a/rpcclient/doc.go +++ b/rpcclient/doc.go @@ -9,7 +9,7 @@ Overview This client provides a robust and easy to use client for interfacing with a Bitcoin RPC server that uses a btcd/bitcoin core compatible Bitcoin JSON-RPC -API. This client has been tested with btcd (https://github.com/btcsuite/btcd), +API. This client has been tested with btcd (https://github.com/lbryio/lbcd), btcwallet (https://github.com/btcsuite/btcwallet), and bitcoin core (https://github.com/bitcoin). diff --git a/rpcclient/example_test.go b/rpcclient/example_test.go index 9ba9adad..a38229f3 100644 --- a/rpcclient/example_test.go +++ b/rpcclient/example_test.go @@ -6,7 +6,7 @@ package rpcclient import ( "fmt" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) var connCfg = &ConnConfig{ diff --git a/rpcclient/examples/bitcoincorehttp/README.md b/rpcclient/examples/bitcoincorehttp/README.md index 4d1f0adf..e26e68ce 100644 --- a/rpcclient/examples/bitcoincorehttp/README.md +++ b/rpcclient/examples/bitcoincorehttp/README.md @@ -10,7 +10,7 @@ block count. The first step is to use `go get` to download and install the rpcclient package: ```bash -$ go get github.com/btcsuite/btcd/rpcclient +$ go get github.com/lbryio/lbcd/rpcclient ``` Next, modify the `main.go` source to specify the correct RPC username and @@ -24,7 +24,7 @@ password for the RPC server: Finally, navigate to the example's directory and run it with: ```bash -$ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/bitcoincorehttp +$ cd $GOPATH/src/github.com/lbryio/lbcd/rpcclient/examples/bitcoincorehttp $ go run *.go ``` diff --git a/rpcclient/examples/bitcoincorehttp/main.go b/rpcclient/examples/bitcoincorehttp/main.go index 489770a2..54e727de 100644 --- a/rpcclient/examples/bitcoincorehttp/main.go +++ b/rpcclient/examples/bitcoincorehttp/main.go @@ -7,7 +7,7 @@ package main import ( "log" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/rpcclient" ) func main() { diff --git a/rpcclient/examples/bitcoincorehttpbulk/README.md b/rpcclient/examples/bitcoincorehttpbulk/README.md index ca900b6e..6d1a02c0 100644 --- a/rpcclient/examples/bitcoincorehttpbulk/README.md +++ b/rpcclient/examples/bitcoincorehttpbulk/README.md @@ -8,7 +8,7 @@ This example shows how to use the rpclient package to connect to a Bitcoin Core The first step is to use `go get` to download and install the rpcclient package: ```bash -$ go get github.com/btcsuite/btcd/rpcclient +$ go get github.com/lbryio/lbcd/rpcclient ``` Next, modify the `main.go` source to specify the correct RPC username and @@ -22,7 +22,7 @@ password for the RPC server: Finally, navigate to the example's directory and run it with: ```bash -$ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/bitcoincorehttp +$ cd $GOPATH/src/github.com/lbryio/lbcd/rpcclient/examples/bitcoincorehttp $ go run *.go ``` diff --git a/rpcclient/examples/bitcoincorehttpbulk/main.go b/rpcclient/examples/bitcoincorehttpbulk/main.go index 3dce058d..fd21ede4 100644 --- a/rpcclient/examples/bitcoincorehttpbulk/main.go +++ b/rpcclient/examples/bitcoincorehttpbulk/main.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/rpcclient" ) func main() { diff --git a/rpcclient/examples/btcdwebsockets/README.md b/rpcclient/examples/btcdwebsockets/README.md index a1686484..4168a0fa 100644 --- a/rpcclient/examples/btcdwebsockets/README.md +++ b/rpcclient/examples/btcdwebsockets/README.md @@ -13,7 +13,7 @@ demonstrate clean shutdown. The first step is to use `go get` to download and install the rpcclient package: ```bash -$ go get github.com/btcsuite/btcd/rpcclient +$ go get github.com/lbryio/lbcd/rpcclient ``` Next, modify the `main.go` source to specify the correct RPC username and @@ -27,7 +27,7 @@ password for the RPC server: Finally, navigate to the example's directory and run it with: ```bash -$ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/btcdwebsockets +$ cd $GOPATH/src/github.com/lbryio/lbcd/rpcclient/examples/btcdwebsockets $ go run *.go ``` diff --git a/rpcclient/examples/btcdwebsockets/main.go b/rpcclient/examples/btcdwebsockets/main.go index 5e6f2aff..00eb3fac 100644 --- a/rpcclient/examples/btcdwebsockets/main.go +++ b/rpcclient/examples/btcdwebsockets/main.go @@ -10,8 +10,8 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/rpcclient" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/rpcclient" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcclient/examples/btcwalletwebsockets/README.md b/rpcclient/examples/btcwalletwebsockets/README.md index e495dff8..1e95a6c1 100644 --- a/rpcclient/examples/btcwalletwebsockets/README.md +++ b/rpcclient/examples/btcwalletwebsockets/README.md @@ -14,7 +14,7 @@ demonstrate clean shutdown. The first step is to use `go get` to download and install the rpcclient package: ```bash -$ go get github.com/btcsuite/btcd/rpcclient +$ go get github.com/lbryio/lbcd/rpcclient ``` Next, modify the `main.go` source to specify the correct RPC username and @@ -28,7 +28,7 @@ password for the RPC server: Finally, navigate to the example's directory and run it with: ```bash -$ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/btcwalletwebsockets +$ cd $GOPATH/src/github.com/lbryio/lbcd/rpcclient/examples/btcwalletwebsockets $ go run *.go ``` diff --git a/rpcclient/examples/btcwalletwebsockets/main.go b/rpcclient/examples/btcwalletwebsockets/main.go index 82a4e540..7a9ce9a8 100644 --- a/rpcclient/examples/btcwalletwebsockets/main.go +++ b/rpcclient/examples/btcwalletwebsockets/main.go @@ -10,7 +10,7 @@ import ( "path/filepath" "time" - "github.com/btcsuite/btcd/rpcclient" + "github.com/lbryio/lbcd/rpcclient" "github.com/btcsuite/btcutil" "github.com/davecgh/go-spew/spew" ) diff --git a/rpcclient/extensions.go b/rpcclient/extensions.go index d16cd525..b4b3684a 100644 --- a/rpcclient/extensions.go +++ b/rpcclient/extensions.go @@ -12,9 +12,9 @@ import ( "encoding/json" "fmt" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index 9ea7b3d5..e30f8c5f 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -25,8 +25,8 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" "github.com/btcsuite/go-socks/socks" "github.com/btcsuite/websocket" ) diff --git a/rpcclient/mining.go b/rpcclient/mining.go index 431054e1..9e6f148b 100644 --- a/rpcclient/mining.go +++ b/rpcclient/mining.go @@ -9,8 +9,8 @@ import ( "encoding/json" "errors" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/btcsuite/btcutil" ) diff --git a/rpcclient/net.go b/rpcclient/net.go index 8c191ff6..ee9125e9 100644 --- a/rpcclient/net.go +++ b/rpcclient/net.go @@ -7,7 +7,7 @@ package rpcclient import ( "encoding/json" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // AddNodeCommand enumerates the available commands that the AddNode function diff --git a/rpcclient/notify.go b/rpcclient/notify.go index 3874d581..87b5383f 100644 --- a/rpcclient/notify.go +++ b/rpcclient/notify.go @@ -13,9 +13,9 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcclient/rawrequest.go b/rpcclient/rawrequest.go index baead8bb..1042b0f0 100644 --- a/rpcclient/rawrequest.go +++ b/rpcclient/rawrequest.go @@ -8,7 +8,7 @@ import ( "encoding/json" "errors" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // FutureRawResult is a future promise to deliver the result of a RawRequest RPC diff --git a/rpcclient/rawtransactions.go b/rpcclient/rawtransactions.go index dd124de0..bdf1bbbb 100644 --- a/rpcclient/rawtransactions.go +++ b/rpcclient/rawtransactions.go @@ -9,9 +9,9 @@ import ( "encoding/hex" "encoding/json" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcclient/wallet.go b/rpcclient/wallet.go index 011e9106..771f3f0f 100644 --- a/rpcclient/wallet.go +++ b/rpcclient/wallet.go @@ -8,10 +8,10 @@ import ( "encoding/json" "strconv" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/rpcserver.go b/rpcserver.go index 5b1a5275..c6267366 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -27,19 +27,19 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/mining/cpuminer" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/mining/cpuminer" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/websocket" ) diff --git a/rpcserverhelp.go b/rpcserverhelp.go index fb60f6b2..f8847da6 100644 --- a/rpcserverhelp.go +++ b/rpcserverhelp.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "github.com/btcsuite/btcd/btcjson" + "github.com/lbryio/lbcd/btcjson" ) // helpDescsEnUS defines the English descriptions used for the help strings. diff --git a/rpcwebsocket.go b/rpcwebsocket.go index 356a8974..604df459 100644 --- a/rpcwebsocket.go +++ b/rpcwebsocket.go @@ -20,13 +20,13 @@ import ( "sync" "time" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/btcjson" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/websocket" "golang.org/x/crypto/ripemd160" diff --git a/server.go b/server.go index b2fc2d71..a9bf64a0 100644 --- a/server.go +++ b/server.go @@ -22,22 +22,22 @@ import ( "sync/atomic" "time" - "github.com/btcsuite/btcd/addrmgr" - "github.com/btcsuite/btcd/blockchain" - "github.com/btcsuite/btcd/blockchain/indexers" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/claimtrie" - claimtrieconfig "github.com/btcsuite/btcd/claimtrie/config" - "github.com/btcsuite/btcd/connmgr" - "github.com/btcsuite/btcd/database" - "github.com/btcsuite/btcd/mempool" - "github.com/btcsuite/btcd/mining" - "github.com/btcsuite/btcd/mining/cpuminer" - "github.com/btcsuite/btcd/netsync" - "github.com/btcsuite/btcd/peer" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/addrmgr" + "github.com/lbryio/lbcd/blockchain" + "github.com/lbryio/lbcd/blockchain/indexers" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/claimtrie" + claimtrieconfig "github.com/lbryio/lbcd/claimtrie/config" + "github.com/lbryio/lbcd/connmgr" + "github.com/lbryio/lbcd/database" + "github.com/lbryio/lbcd/mempool" + "github.com/lbryio/lbcd/mining" + "github.com/lbryio/lbcd/mining/cpuminer" + "github.com/lbryio/lbcd/netsync" + "github.com/lbryio/lbcd/peer" + "github.com/lbryio/lbcd/txscript" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil/bloom" ) diff --git a/txscript/engine.go b/txscript/engine.go index b6981c8c..05e76b2b 100644 --- a/txscript/engine.go +++ b/txscript/engine.go @@ -11,8 +11,8 @@ import ( "fmt" "math/big" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/wire" ) // ScriptFlags is a bitmask defining additional operations or tests that will be diff --git a/txscript/hashcache.go b/txscript/hashcache.go index f9c2caf7..ab5d9d1b 100644 --- a/txscript/hashcache.go +++ b/txscript/hashcache.go @@ -7,8 +7,8 @@ package txscript import ( "sync" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // TxSigHashes houses the partial set of sighashes introduced within BIP0143. diff --git a/txscript/hashcache_test.go b/txscript/hashcache_test.go index cee59b99..48249cdd 100644 --- a/txscript/hashcache_test.go +++ b/txscript/hashcache_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" "github.com/davecgh/go-spew/spew" ) diff --git a/txscript/nameclaim.go b/txscript/nameclaim.go index bcdf01eb..e1fddd7a 100644 --- a/txscript/nameclaim.go +++ b/txscript/nameclaim.go @@ -5,7 +5,7 @@ import ( "fmt" "unicode/utf8" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) const ( diff --git a/txscript/opcode.go b/txscript/opcode.go index fff64e6e..016577f1 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -14,9 +14,9 @@ import ( "golang.org/x/crypto/ripemd160" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // An opcode defines the information related to a txscript opcode. opfunc, if diff --git a/txscript/pkscript.go b/txscript/pkscript.go index 0703ef5d..0bf28dcd 100644 --- a/txscript/pkscript.go +++ b/txscript/pkscript.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" "golang.org/x/crypto/ripemd160" ) diff --git a/txscript/pkscript_test.go b/txscript/pkscript_test.go index 49e2db8a..1e95a49f 100644 --- a/txscript/pkscript_test.go +++ b/txscript/pkscript_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/wire" ) // TestParsePkScript ensures that the supported script types can be parsed diff --git a/txscript/script.go b/txscript/script.go index ae6f509e..dae0dbb9 100644 --- a/txscript/script.go +++ b/txscript/script.go @@ -10,8 +10,8 @@ import ( "fmt" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" ) // Bip16Activation is the timestamp where BIP0016 is valid to use in the diff --git a/txscript/sigcache.go b/txscript/sigcache.go index d9e4fa6c..56db61b5 100644 --- a/txscript/sigcache.go +++ b/txscript/sigcache.go @@ -7,8 +7,8 @@ package txscript import ( "sync" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // sigCacheEntry represents an entry in the SigCache. Entries within the diff --git a/txscript/sigcache_test.go b/txscript/sigcache_test.go index 5413ea3b..40958cfb 100644 --- a/txscript/sigcache_test.go +++ b/txscript/sigcache_test.go @@ -8,8 +8,8 @@ import ( "crypto/rand" "testing" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // genRandomSig returns a random message, a signature of the message under the diff --git a/txscript/sign.go b/txscript/sign.go index 348a109b..ad5f0f69 100644 --- a/txscript/sign.go +++ b/txscript/sign.go @@ -8,9 +8,9 @@ import ( "errors" "fmt" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/txscript/sign_test.go b/txscript/sign_test.go index b97a8a64..9d84ef83 100644 --- a/txscript/sign_test.go +++ b/txscript/sign_test.go @@ -9,10 +9,10 @@ import ( "fmt" "testing" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/btcec" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/txscript/standard.go b/txscript/standard.go index 0acce5bc..dcc07ee0 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -7,8 +7,8 @@ package txscript import ( "fmt" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/wire" + "github.com/lbryio/lbcd/chaincfg" + "github.com/lbryio/lbcd/wire" "github.com/btcsuite/btcutil" ) diff --git a/wire/blockheader.go b/wire/blockheader.go index ee45ec3b..2c52da7e 100644 --- a/wire/blockheader.go +++ b/wire/blockheader.go @@ -9,7 +9,7 @@ import ( "io" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MaxBlockHeaderPayload is the maximum number of bytes a block header can be. diff --git a/wire/common.go b/wire/common.go index 8d61bdb6..134e0547 100644 --- a/wire/common.go +++ b/wire/common.go @@ -12,7 +12,7 @@ import ( "math" "time" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) const ( diff --git a/wire/invvect.go b/wire/invvect.go index 1e706642..d84b52bf 100644 --- a/wire/invvect.go +++ b/wire/invvect.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) const ( diff --git a/wire/invvect_test.go b/wire/invvect_test.go index 1d02c098..993debba 100644 --- a/wire/invvect_test.go +++ b/wire/invvect_test.go @@ -9,7 +9,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/message.go b/wire/message.go index 6d3147a8..23cc2e05 100644 --- a/wire/message.go +++ b/wire/message.go @@ -10,7 +10,7 @@ import ( "io" "unicode/utf8" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MessageHeaderSize is the number of bytes in a bitcoin message header. diff --git a/wire/msgblock.go b/wire/msgblock.go index 4172949d..c940b971 100644 --- a/wire/msgblock.go +++ b/wire/msgblock.go @@ -9,7 +9,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // defaultTransactionAlloc is the default size used for the backing array diff --git a/wire/msgcfcheckpt.go b/wire/msgcfcheckpt.go index fc3fd532..91e20de5 100644 --- a/wire/msgcfcheckpt.go +++ b/wire/msgcfcheckpt.go @@ -9,7 +9,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) const ( diff --git a/wire/msgcfheaders.go b/wire/msgcfheaders.go index 40d30f9b..0581581f 100644 --- a/wire/msgcfheaders.go +++ b/wire/msgcfheaders.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) const ( diff --git a/wire/msgcfilter.go b/wire/msgcfilter.go index 097590b2..838b0f55 100644 --- a/wire/msgcfilter.go +++ b/wire/msgcfilter.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // FilterType is used to represent a filter type. diff --git a/wire/msggetblocks.go b/wire/msggetblocks.go index caf4400c..1f94245d 100644 --- a/wire/msggetblocks.go +++ b/wire/msggetblocks.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MaxBlockLocatorsPerMsg is the maximum number of block locator hashes allowed diff --git a/wire/msggetcfcheckpt.go b/wire/msggetcfcheckpt.go index c30a86ce..4f7fde47 100644 --- a/wire/msggetcfcheckpt.go +++ b/wire/msggetcfcheckpt.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MsgGetCFCheckpt is a request for filter headers at evenly spaced intervals diff --git a/wire/msggetcfheaders.go b/wire/msggetcfheaders.go index 03a1caf7..46f6aa5f 100644 --- a/wire/msggetcfheaders.go +++ b/wire/msggetcfheaders.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MsgGetCFHeaders is a message similar to MsgGetHeaders, but for committed diff --git a/wire/msggetcfilters.go b/wire/msggetcfilters.go index 80024138..759950fd 100644 --- a/wire/msggetcfilters.go +++ b/wire/msggetcfilters.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MaxGetCFiltersReqRange the maximum number of filters that may be requested in diff --git a/wire/msggetdata_test.go b/wire/msggetdata_test.go index a2dd4651..9071d60e 100644 --- a/wire/msggetdata_test.go +++ b/wire/msggetdata_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msggetheaders.go b/wire/msggetheaders.go index 0bbe42cb..aa5cc3f2 100644 --- a/wire/msggetheaders.go +++ b/wire/msggetheaders.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // MsgGetHeaders implements the Message interface and represents a bitcoin diff --git a/wire/msginv_test.go b/wire/msginv_test.go index b7c7c6ae..96b0eec8 100644 --- a/wire/msginv_test.go +++ b/wire/msginv_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgmerkleblock.go b/wire/msgmerkleblock.go index d2ee4721..075f3d56 100644 --- a/wire/msgmerkleblock.go +++ b/wire/msgmerkleblock.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // maxFlagsPerMerkleBlock is the maximum number of flag bytes that could diff --git a/wire/msgnotfound_test.go b/wire/msgnotfound_test.go index 69b9d07a..cf9c3645 100644 --- a/wire/msgnotfound_test.go +++ b/wire/msgnotfound_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgreject.go b/wire/msgreject.go index a00eeff6..ee64c747 100644 --- a/wire/msgreject.go +++ b/wire/msgreject.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) // RejectCode represents a numeric value by which a remote peer indicates diff --git a/wire/msgtx.go b/wire/msgtx.go index 1e2f69fa..34bdeaed 100644 --- a/wire/msgtx.go +++ b/wire/msgtx.go @@ -10,7 +10,7 @@ import ( "io" "strconv" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" ) const ( diff --git a/wire/msgtx_test.go b/wire/msgtx_test.go index 66965043..84d28bc6 100644 --- a/wire/msgtx_test.go +++ b/wire/msgtx_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/davecgh/go-spew/spew" )