diff --git a/.deepsource.toml b/.deepsource.toml index e848a2b6..683bb70f 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -5,4 +5,4 @@ name = "go" enabled = true [analyzers.meta] - import_paths = ["github.com/pkt-cash/pktd"] + import_paths = ["github.com/pkt-cash/PKT-FullNode"] diff --git a/README.md b/README.md index c2c1695a..7422e0ee 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ functionality - this was an intentional design decision. You will not be able to make or receive payments with `pktd` directly. Example wallet functionality is provided in the included, separate, -[pktwallet](https://github.com/pkt-cash/pktd/pktwallet) package. +[pktwallet](https://github.com/pkt-cash/PKT-FullNode/pktwallet) package. ## Requirements @@ -37,13 +37,13 @@ Example wallet functionality is provided in the included, separate, ## Issue Tracker -* The GitHub [integrated GitHub issue tracker](https://github.com/pkt-cash/pktd/issues) is used for this project. +* The GitHub [integrated GitHub issue tracker](https://github.com/pkt-cash/PKT-FullNode/issues) is used for this project. ## Building Using `git`, clone the project from the repository: -`git clone https://github.com/pkt-cash/pktd` +`git clone https://github.com/pkt-cash/PKT-FullNode` Use the `./do` shell script to build `pktd`, `pktwallet`, and `pktctl`. @@ -63,7 +63,7 @@ for download [here](https://storage.googleapis.com/golang/getgo/installer_linux) ## Documentation -The documentation for `pktd` is work-in-progress, and available in the [docs](https://github.com/pkt-cash/pktd/tree/master/docs) folder. +The documentation for `pktd` is work-in-progress, and available in the [docs](https://github.com/pkt-cash/PKT-FullNode/tree/master/docs) folder. ## License diff --git a/addrmgr/addrmanager.go b/addrmgr/addrmanager.go index 8f571bd3..a4bef370 100644 --- a/addrmgr/addrmanager.go +++ b/addrmgr/addrmanager.go @@ -21,12 +21,12 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/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 0adb199e..f2eb927f 100644 --- a/addrmgr/addrmanager_internal_test.go +++ b/addrmgr/addrmanager_internal_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // 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 ca1c667c..22dc2167 100644 --- a/addrmgr/addrmanager_test.go +++ b/addrmgr/addrmanager_test.go @@ -11,11 +11,11 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/addrmgr" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/addrmgr" + "github.com/pkt-cash/PKT-FullNode/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 6e2e7aae..49a0748f 100644 --- a/addrmgr/internal_test.go +++ b/addrmgr/internal_test.go @@ -7,7 +7,7 @@ package addrmgr import ( "time" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) func TstKnownAddressIsBad(ka *KnownAddress) bool { diff --git a/addrmgr/knownaddress.go b/addrmgr/knownaddress.go index 923fbca0..931d20ee 100644 --- a/addrmgr/knownaddress.go +++ b/addrmgr/knownaddress.go @@ -7,8 +7,8 @@ package addrmgr import ( "time" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // KnownAddress tracks information about a known network address that is used diff --git a/addrmgr/knownaddress_test.go b/addrmgr/knownaddress_test.go index d9f6e1c0..cfc3a5b2 100644 --- a/addrmgr/knownaddress_test.go +++ b/addrmgr/knownaddress_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/addrmgr" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/addrmgr" + "github.com/pkt-cash/PKT-FullNode/wire" ) func TestChance(t *testing.T) { diff --git a/addrmgr/network.go b/addrmgr/network.go index 0e8f7403..24a76e2b 100644 --- a/addrmgr/network.go +++ b/addrmgr/network.go @@ -7,7 +7,7 @@ package addrmgr import ( "net" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) var ( @@ -216,7 +216,7 @@ func IsRoutable(na *wire.NetAddress) bool { // GroupKey returns a string representing the network group an address is part // of. This is the /16 for IPv4, the /32 (/36 for he.net) for IPv6, the string -// "local" for a local address, and the string "unroutable" for an +// "local" for a local address, and the string "unroutable" for an // unroutable address. func GroupKey(na *wire.NetAddress) string { if IsLocal(na) { diff --git a/addrmgr/network_test.go b/addrmgr/network_test.go index 654cca5e..8fa8fb67 100644 --- a/addrmgr/network_test.go +++ b/addrmgr/network_test.go @@ -8,9 +8,9 @@ import ( "net" "testing" - "github.com/pkt-cash/pktd/addrmgr" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/addrmgr" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestIPTypes ensures the various functions which determine the type of an IP diff --git a/blockchain/accept.go b/blockchain/accept.go index 5dfe7eb6..a7d755a2 100644 --- a/blockchain/accept.go +++ b/blockchain/accept.go @@ -7,11 +7,11 @@ package blockchain import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/database" ) // maybeAcceptBlock potentially accepts a block into the block chain and, if diff --git a/blockchain/bench_test.go b/blockchain/bench_test.go index b21dec48..04162249 100644 --- a/blockchain/bench_test.go +++ b/blockchain/bench_test.go @@ -7,7 +7,7 @@ package blockchain import ( "testing" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) // BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase diff --git a/blockchain/blockindex.go b/blockchain/blockindex.go index 7ec54628..3aa35d0a 100644 --- a/blockchain/blockindex.go +++ b/blockchain/blockindex.go @@ -10,12 +10,12 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) // blockStatus is a bit field representing the validation state of the block. diff --git a/blockchain/chain.go b/blockchain/chain.go index df3dbf65..d24a6dad 100644 --- a/blockchain/chain.go +++ b/blockchain/chain.go @@ -12,17 +12,17 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/chain_test.go b/blockchain/chain_test.go index b41ec0a2..592d9aa1 100644 --- a/blockchain/chain_test.go +++ b/blockchain/chain_test.go @@ -9,11 +9,11 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) // TestHaveBlock tests the HaveBlock API to ensure proper functionality. diff --git a/blockchain/chainio.go b/blockchain/chainio.go index 7d89d659..4d0c59c1 100644 --- a/blockchain/chainio.go +++ b/blockchain/chainio.go @@ -14,14 +14,14 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/chainio_test.go b/blockchain/chainio_test.go index 31da0140..413db3e8 100644 --- a/blockchain/chainio_test.go +++ b/blockchain/chainio_test.go @@ -10,10 +10,10 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestStxoSerialization ensures serializing and deserializing spent transaction diff --git a/blockchain/chainview_test.go b/blockchain/chainview_test.go index 20755b00..f27335df 100644 --- a/blockchain/chainview_test.go +++ b/blockchain/chainview_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // testNoncePrng provides a deterministic prng for the nonce in generated fake diff --git a/blockchain/checkpoints.go b/blockchain/checkpoints.go index e3eca303..95cca585 100644 --- a/blockchain/checkpoints.go +++ b/blockchain/checkpoints.go @@ -7,11 +7,11 @@ package blockchain import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // newHashFromStr converts the passed big-endian hex string into a diff --git a/blockchain/common_test.go b/blockchain/common_test.go index c4d1ace4..0d1fbbfa 100644 --- a/blockchain/common_test.go +++ b/blockchain/common_test.go @@ -14,18 +14,18 @@ import ( "strings" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/blockchain/testdata" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain/testdata" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/compress.go b/blockchain/compress.go index 3de99ce5..e356bdf0 100644 --- a/blockchain/compress.go +++ b/blockchain/compress.go @@ -5,9 +5,9 @@ package blockchain import ( - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" ) // ----------------------------------------------------------------------------- diff --git a/blockchain/difficulty.go b/blockchain/difficulty.go index e06f3bdd..de5d08ca 100644 --- a/blockchain/difficulty.go +++ b/blockchain/difficulty.go @@ -8,10 +8,10 @@ import ( "math/big" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) var ( diff --git a/blockchain/election.go b/blockchain/election.go index 450a1872..873bc496 100644 --- a/blockchain/election.go +++ b/blockchain/election.go @@ -8,11 +8,11 @@ import ( "bytes" "encoding/hex" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/txscript" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/txscript" ) func electionIsVoteAgainst(pkScript, networkSteward []byte) bool { diff --git a/blockchain/error.go b/blockchain/error.go index e9a09cc6..e046e1ef 100644 --- a/blockchain/error.go +++ b/blockchain/error.go @@ -8,7 +8,7 @@ package blockchain import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // DeploymentError identifies an error that indicates a deployment ID was diff --git a/blockchain/example_test.go b/blockchain/example_test.go index f7a22dbe..228efa6b 100644 --- a/blockchain/example_test.go +++ b/blockchain/example_test.go @@ -10,12 +10,12 @@ import ( "os" "path/filepath" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" ) // This example demonstrates how to create a new chain instance and use diff --git a/blockchain/fullblocks_test.go b/blockchain/fullblocks_test.go index 9015ecef..3e4d95f7 100644 --- a/blockchain/fullblocks_test.go +++ b/blockchain/fullblocks_test.go @@ -11,19 +11,19 @@ import ( "path/filepath" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/blockchain/fullblocktests" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/blockchain/fullblocktests" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/fullblocktests/generate.go b/blockchain/fullblocktests/generate.go index 7675d766..4b440f94 100644 --- a/blockchain/fullblocktests/generate.go +++ b/blockchain/fullblocktests/generate.go @@ -17,20 +17,20 @@ import ( "runtime" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/fullblocktests/params.go b/blockchain/fullblocktests/params.go index 4d514a63..ec7db637 100644 --- a/blockchain/fullblocktests/params.go +++ b/blockchain/fullblocktests/params.go @@ -9,10 +9,10 @@ import ( "math/big" "time" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // newHashFromStr converts the passed big-endian hex string into a diff --git a/blockchain/indexers/addrindex.go b/blockchain/indexers/addrindex.go index 5c93c914..bff79263 100644 --- a/blockchain/indexers/addrindex.go +++ b/blockchain/indexers/addrindex.go @@ -9,15 +9,15 @@ import ( "fmt" "sync" - "github.com/pkt-cash/pktd/btcutil/er" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/indexers/addrindex_test.go b/blockchain/indexers/addrindex_test.go index 829a48aa..95b395e6 100644 --- a/blockchain/indexers/addrindex_test.go +++ b/blockchain/indexers/addrindex_test.go @@ -9,9 +9,9 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // addrIndexBucket provides a mock address index database bucket by implementing diff --git a/blockchain/indexers/blocklogger.go b/blockchain/indexers/blocklogger.go index 38361fdc..dd1e42dc 100644 --- a/blockchain/indexers/blocklogger.go +++ b/blockchain/indexers/blocklogger.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) // blockProgressLogger provides periodic logging for other services in order diff --git a/blockchain/indexers/cfindex.go b/blockchain/indexers/cfindex.go index b49a30ff..3401dfaf 100644 --- a/blockchain/indexers/cfindex.go +++ b/blockchain/indexers/cfindex.go @@ -5,15 +5,15 @@ package indexers import ( - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/gcs" - "github.com/pkt-cash/pktd/btcutil/gcs/builder" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs/builder" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/indexers/common.go b/blockchain/indexers/common.go index 18a2088d..41722089 100644 --- a/blockchain/indexers/common.go +++ b/blockchain/indexers/common.go @@ -10,11 +10,11 @@ package indexers import ( "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/database" ) var Err er.ErrorType = er.NewErrorType("indexers.Err") diff --git a/blockchain/indexers/manager.go b/blockchain/indexers/manager.go index e9f223a4..cc245f9b 100644 --- a/blockchain/indexers/manager.go +++ b/blockchain/indexers/manager.go @@ -7,13 +7,13 @@ package indexers import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" ) var ( diff --git a/blockchain/indexers/txindex.go b/blockchain/indexers/txindex.go index 6274157d..45f9576a 100644 --- a/blockchain/indexers/txindex.go +++ b/blockchain/indexers/txindex.go @@ -8,14 +8,14 @@ import ( "errors" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/mediantime.go b/blockchain/mediantime.go index 716cb00f..37f0e11d 100644 --- a/blockchain/mediantime.go +++ b/blockchain/mediantime.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) const ( diff --git a/blockchain/merkle.go b/blockchain/merkle.go index e3246c5b..4de9a2f3 100644 --- a/blockchain/merkle.go +++ b/blockchain/merkle.go @@ -11,12 +11,12 @@ import ( "math" "math/bits" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( diff --git a/blockchain/merkle_test.go b/blockchain/merkle_test.go index f5197aa8..fc92fc7a 100644 --- a/blockchain/merkle_test.go +++ b/blockchain/merkle_test.go @@ -7,7 +7,7 @@ package blockchain import ( "testing" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) // TestMerkle tests the BuildMerkleTreeStore API. diff --git a/blockchain/notifications_test.go b/blockchain/notifications_test.go index d92565a6..22c54082 100644 --- a/blockchain/notifications_test.go +++ b/blockchain/notifications_test.go @@ -7,7 +7,7 @@ package blockchain import ( "testing" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // TestNotifications ensures that notification callbacks are fired on events. diff --git a/blockchain/packetcrypt/announce/validate.go b/blockchain/packetcrypt/announce/validate.go index 19673a80..f81dadca 100644 --- a/blockchain/packetcrypt/announce/validate.go +++ b/blockchain/packetcrypt/announce/validate.go @@ -8,16 +8,16 @@ import ( "bytes" "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" - - "github.com/pkt-cash/pktd/blockchain/packetcrypt/cryptocycle" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/interpret" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/randgen" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/util" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/cryptocycle" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/interpret" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/randgen" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) const announceMerkleDepth int = 13 diff --git a/blockchain/packetcrypt/block/blockvalid.go b/blockchain/packetcrypt/block/blockvalid.go index bed14794..e73f90d0 100644 --- a/blockchain/packetcrypt/block/blockvalid.go +++ b/blockchain/packetcrypt/block/blockvalid.go @@ -9,20 +9,20 @@ import ( "encoding/hex" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/util" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/util" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/announce" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/block/proof" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/announce" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/block/proof" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/cryptocycle" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/cryptocycle" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) func isWorkOk(ccState *cryptocycle.State, cb *wire.PcCoinbaseCommit, target uint32, packetCryptVersion int) bool { diff --git a/blockchain/packetcrypt/block/proof/pcp.go b/blockchain/packetcrypt/block/proof/pcp.go index e2be057a..e3c42fa6 100644 --- a/blockchain/packetcrypt/block/proof/pcp.go +++ b/blockchain/packetcrypt/block/proof/pcp.go @@ -8,12 +8,12 @@ import ( "bytes" "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) const uint64Max uint64 = 0xffffffffffffffff diff --git a/blockchain/packetcrypt/block/proof/tree.go b/blockchain/packetcrypt/block/proof/tree.go index 0da7fb14..2297fe51 100644 --- a/blockchain/packetcrypt/block/proof/tree.go +++ b/blockchain/packetcrypt/block/proof/tree.go @@ -11,10 +11,10 @@ import ( "math/bits" "strings" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" ) // How does it work: diff --git a/blockchain/packetcrypt/cryptocycle/cryptocycle.go b/blockchain/packetcrypt/cryptocycle/cryptocycle.go index 16916f25..c3beae16 100644 --- a/blockchain/packetcrypt/cryptocycle/cryptocycle.go +++ b/blockchain/packetcrypt/cryptocycle/cryptocycle.go @@ -12,10 +12,10 @@ import ( "golang.org/x/crypto/curve25519" "golang.org/x/crypto/poly1305" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/interpret" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/interpret" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/randgen" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/randgen" ) type State struct { diff --git a/blockchain/packetcrypt/difficulty/diff.go b/blockchain/packetcrypt/difficulty/diff.go index 48791c64..66c11118 100644 --- a/blockchain/packetcrypt/difficulty/diff.go +++ b/blockchain/packetcrypt/difficulty/diff.go @@ -7,9 +7,9 @@ package difficulty import ( "math/big" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/util" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/util" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" ) func bn256() *big.Int { diff --git a/blockchain/packetcrypt/packetcrypt.go b/blockchain/packetcrypt/packetcrypt.go index 24be1d58..c33e6f6e 100644 --- a/blockchain/packetcrypt/packetcrypt.go +++ b/blockchain/packetcrypt/packetcrypt.go @@ -10,14 +10,14 @@ import ( "encoding/hex" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" "github.com/dchest/blake2b" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/announce" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/block" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/announce" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/block" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" "golang.org/x/crypto/ed25519" ) diff --git a/blockchain/packetcrypt/packetcrypt_test.go b/blockchain/packetcrypt/packetcrypt_test.go index 71070994..8cec6233 100644 --- a/blockchain/packetcrypt/packetcrypt_test.go +++ b/blockchain/packetcrypt/packetcrypt_test.go @@ -10,15 +10,15 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/blockchain/packetcrypt" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/cryptocycle" - "github.com/pkt-cash/pktd/blockchain/testdata" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/cryptocycle" + "github.com/pkt-cash/PKT-FullNode/blockchain/testdata" + "github.com/pkt-cash/PKT-FullNode/wire" "golang.org/x/crypto/chacha20poly1305" ) diff --git a/blockchain/packetcrypt/randhash/interpret/interpret.go b/blockchain/packetcrypt/randhash/interpret/interpret.go index 60655e0a..eac8a03d 100644 --- a/blockchain/packetcrypt/randhash/interpret/interpret.go +++ b/blockchain/packetcrypt/randhash/interpret/interpret.go @@ -8,10 +8,10 @@ import ( "encoding/binary" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/opcodes" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/util" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/opcodes" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/util" ) type Uint64 struct { diff --git a/blockchain/packetcrypt/randhash/interpret/simpleop_gen.go b/blockchain/packetcrypt/randhash/interpret/simpleop_gen.go index 8bcb5fe1..744d1897 100644 --- a/blockchain/packetcrypt/randhash/interpret/simpleop_gen.go +++ b/blockchain/packetcrypt/randhash/interpret/simpleop_gen.go @@ -7,7 +7,7 @@ package interpret import ( "fmt" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/opcodes" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/opcodes" ) func doOp(ctx *Context, insn uint32, op opcodes.OpCode) { diff --git a/blockchain/packetcrypt/randhash/randgen/randgen.go b/blockchain/packetcrypt/randhash/randgen/randgen.go index f927dbae..09d05d3e 100644 --- a/blockchain/packetcrypt/randhash/randgen/randgen.go +++ b/blockchain/packetcrypt/randhash/randgen/randgen.go @@ -7,11 +7,11 @@ package randgen import ( "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/opcodes" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/randhash/util" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/opcodes" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/randhash/util" ) type randGen struct { diff --git a/blockchain/process.go b/blockchain/process.go index 11d77473..fbaf81f6 100644 --- a/blockchain/process.go +++ b/blockchain/process.go @@ -9,14 +9,14 @@ import ( "fmt" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/database" ) // BehaviorFlags is a bitmask defining tweaks to the normal behavior when diff --git a/blockchain/scriptval.go b/blockchain/scriptval.go index 645a29df..7c663f52 100644 --- a/blockchain/scriptval.go +++ b/blockchain/scriptval.go @@ -10,13 +10,13 @@ import ( "runtime" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) // txValidateItem holds a transaction along with which input to validate. diff --git a/blockchain/scriptval_test.go b/blockchain/scriptval_test.go index 0d47af71..df30c938 100644 --- a/blockchain/scriptval_test.go +++ b/blockchain/scriptval_test.go @@ -9,13 +9,13 @@ import ( "runtime" "testing" - "github.com/pkt-cash/pktd/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript" ) // TestCheckBlockScripts ensures that validating the all of the scripts in a // known-good block doesn't return an error. func TestCheckBlockScripts(t *testing.T) { - runtime.GOMAXPROCS(runtime.NumCPU()*6) + runtime.GOMAXPROCS(runtime.NumCPU() * 6) testBlockNum := 277647 blockDataFile := fmt.Sprintf("%d.dat.bz2", testBlockNum) diff --git a/blockchain/testdata/util.go b/blockchain/testdata/util.go index a37c498f..562e5f3e 100644 --- a/blockchain/testdata/util.go +++ b/blockchain/testdata/util.go @@ -20,11 +20,11 @@ import ( "strings" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/wire" ) // LoadBlocks reads files containing bitcoin block data (gzipped but otherwise @@ -84,7 +84,7 @@ func LoadBlocks(filename string) ([]*btcutil.Block, er.R) { } func GetBlock(name string, t *testing.T) *btcutil.Block { - runtime.GOMAXPROCS(runtime.NumCPU()*6) + runtime.GOMAXPROCS(runtime.NumCPU() * 6) blocks, err := LoadBlocks(name) if err != nil { diff --git a/blockchain/thresholdstate.go b/blockchain/thresholdstate.go index fbc85300..4dc70765 100644 --- a/blockchain/thresholdstate.go +++ b/blockchain/thresholdstate.go @@ -9,9 +9,9 @@ import ( "fmt" "math" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/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 e4b8968e..476af504 100644 --- a/blockchain/thresholdstate_test.go +++ b/blockchain/thresholdstate_test.go @@ -7,7 +7,7 @@ package blockchain import ( "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestThresholdStateStringer tests the stringized output for the diff --git a/blockchain/upgrade.go b/blockchain/upgrade.go index 522fe11e..925acc68 100644 --- a/blockchain/upgrade.go +++ b/blockchain/upgrade.go @@ -11,12 +11,12 @@ import ( "fmt" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/utxoviewpoint.go b/blockchain/utxoviewpoint.go index c6bb24c1..2b113064 100644 --- a/blockchain/utxoviewpoint.go +++ b/blockchain/utxoviewpoint.go @@ -8,14 +8,14 @@ package blockchain import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) // txoFlags is a bitmask defining additional information and state for a diff --git a/blockchain/validate.go b/blockchain/validate.go index fdebdf8f..789a8b74 100644 --- a/blockchain/validate.go +++ b/blockchain/validate.go @@ -14,18 +14,18 @@ import ( "math/big" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain/packetcrypt" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/blockchain/validate_test.go b/blockchain/validate_test.go index 7daa913f..84bb249c 100644 --- a/blockchain/validate_test.go +++ b/blockchain/validate_test.go @@ -10,13 +10,13 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" ) // TestSequenceLocksActive tests the SequenceLockActive function to ensure it diff --git a/blockchain/versionbits.go b/blockchain/versionbits.go index 10e6699b..5afef98e 100644 --- a/blockchain/versionbits.go +++ b/blockchain/versionbits.go @@ -7,10 +7,10 @@ package blockchain import ( "math" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) const ( diff --git a/blockchain/weight.go b/blockchain/weight.go index 95f68c37..21e0b769 100644 --- a/blockchain/weight.go +++ b/blockchain/weight.go @@ -7,12 +7,12 @@ package blockchain import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/txscript" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/txscript" ) const ( diff --git a/btcec/ciphering.go b/btcec/ciphering.go index f6670813..37d07666 100644 --- a/btcec/ciphering.go +++ b/btcec/ciphering.go @@ -15,7 +15,7 @@ import ( "errors" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) var ( @@ -210,13 +210,13 @@ func addPKCSPadding(src []byte) []byte { func removePKCSPadding(src []byte) ([]byte, er.R) { length := len(src) padLength := int(src[length-1]) - //The padding length must be between 1 and aes block size (16), else invalid: - if padLength > aes.BlockSize || length < aes.BlockSize || padLength == 0 { - return nil, er.E(errInvalidPadding) - } - //The padding must contain the padding length byte, repeated (RFC2315 10.3.2) - expectedPadding := bytes.Repeat(src[length-1:], padLength) - if !bytes.Equal(src[length-padLength:length], expectedPadding) { + //The padding length must be between 1 and aes block size (16), else invalid: + if padLength > aes.BlockSize || length < aes.BlockSize || padLength == 0 { + return nil, er.E(errInvalidPadding) + } + //The padding must contain the padding length byte, repeated (RFC2315 10.3.2) + expectedPadding := bytes.Repeat(src[length-1:], padLength) + if !bytes.Equal(src[length-padLength:length], expectedPadding) { return nil, er.E(errInvalidPadding) } diff --git a/btcec/example_test.go b/btcec/example_test.go index 324cf793..66b6a23b 100644 --- a/btcec/example_test.go +++ b/btcec/example_test.go @@ -7,9 +7,9 @@ package btcec_test import ( "fmt" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/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 b4701f9f..baed01be 100644 --- a/btcec/genprecomps.go +++ b/btcec/genprecomps.go @@ -5,6 +5,7 @@ // This file is ignored during the regular build due to the following build tag. // It is called by go generate and used to automatically generate pre-computed // tables used to accelerate operations. +//go:build ignore // +build ignore package main @@ -17,8 +18,8 @@ import ( "log" "os" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) func main() { diff --git a/btcec/precompute.go b/btcec/precompute.go index 862b018f..6ac158c1 100644 --- a/btcec/precompute.go +++ b/btcec/precompute.go @@ -11,7 +11,7 @@ import ( "io/ioutil" "strings" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) //go:generate go run -tags gensecp256k1 genprecomps.go diff --git a/btcec/privkey.go b/btcec/privkey.go index adc9d1f0..c48e74cb 100644 --- a/btcec/privkey.go +++ b/btcec/privkey.go @@ -10,7 +10,7 @@ import ( "crypto/rand" "math/big" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // PrivateKey wraps an ecdsa.PrivateKey as a convenience mainly for signing diff --git a/btcec/pubkey.go b/btcec/pubkey.go index bb73a09f..d3cdbdf6 100644 --- a/btcec/pubkey.go +++ b/btcec/pubkey.go @@ -8,7 +8,7 @@ import ( "crypto/ecdsa" "math/big" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // These constants define the lengths of serialized public keys. diff --git a/btcec/signature.go b/btcec/signature.go index 82620a97..3a047ebe 100644 --- a/btcec/signature.go +++ b/btcec/signature.go @@ -14,7 +14,7 @@ import ( "hash" "math/big" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Errors returned by canonicalPadding. diff --git a/btcec/signature_test.go b/btcec/signature_test.go index 08ba5f42..bf4ef4c1 100644 --- a/btcec/signature_test.go +++ b/btcec/signature_test.go @@ -13,7 +13,7 @@ import ( "math/big" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) type signatureTest struct { diff --git a/btcjson/btcdextcmds_test.go b/btcjson/btcdextcmds_test.go index a6486af2..81faa4e1 100644 --- a/btcjson/btcdextcmds_test.go +++ b/btcjson/btcdextcmds_test.go @@ -8,12 +8,12 @@ package btcjson_test import ( "bytes" "fmt" + "github.com/json-iterator/go" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" "reflect" "testing" - "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestBtcdExtCmds tests all of the pktd extended commands marshal and unmarshal diff --git a/btcjson/btcdextresults_test.go b/btcjson/btcdextresults_test.go index 15ee68c2..e359eab0 100644 --- a/btcjson/btcdextresults_test.go +++ b/btcjson/btcdextresults_test.go @@ -9,7 +9,7 @@ import ( "github.com/json-iterator/go" "testing" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestBtcdExtCustomResults ensures any results that have custom marshalling diff --git a/btcjson/chainsvrcmds.go b/btcjson/chainsvrcmds.go index 1f89a46a..28d47997 100644 --- a/btcjson/chainsvrcmds.go +++ b/btcjson/chainsvrcmds.go @@ -9,12 +9,12 @@ package btcjson import ( - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/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 61ba08ea..3695fb4b 100644 --- a/btcjson/chainsvrcmds_test.go +++ b/btcjson/chainsvrcmds_test.go @@ -6,14 +6,14 @@ package btcjson_test import ( "bytes" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "testing" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestChainSvrCmds tests all of the chain server commands marshal and unmarshal @@ -1163,33 +1163,33 @@ func TestChainSvrCmds(t *testing.T) { // custom mashal and unmarshal are as expected. /*func TestChainSvrCmdErrors(t *testing.T) { - tests := []struct { - name string - result interface{} - marshalled string - err er.R - }{ - { - name: "template request with invalid type", - result: &btcjson.TemplateRequest{}, - marshalled: `{"mode":1}`, - err: er.E(&json.UnmarshalTypeError{}), - }, - { - name: "invalid template request sigoplimit field", - result: &btcjson.TemplateRequest{}, - marshalled: `{"sigoplimit":"invalid"}`, - err: btcjson.ErrInvalidType.Default(), - }, - { - name: "invalid template request sizelimit field", - result: &btcjson.TemplateRequest{}, - marshalled: `{"sizelimit":"invalid"}`, - err: btcjson.ErrInvalidType.Default(), - }, - } XXX -trn */ +tests := []struct { + name string + result interface{} + marshalled string + err er.R +}{ + { + name: "template request with invalid type", + result: &btcjson.TemplateRequest{}, + marshalled: `{"mode":1}`, + err: er.E(&json.UnmarshalTypeError{}), + }, + { + name: "invalid template request sigoplimit field", + result: &btcjson.TemplateRequest{}, + marshalled: `{"sigoplimit":"invalid"}`, + err: btcjson.ErrInvalidType.Default(), + }, + { + name: "invalid template request sizelimit field", + result: &btcjson.TemplateRequest{}, + marshalled: `{"sizelimit":"invalid"}`, + err: btcjson.ErrInvalidType.Default(), + }, +} XXX -trn */ - /*t.Logf("Running %d tests", len(tests)) +/*t.Logf("Running %d tests", len(tests)) for i, test := range tests { err := er.E(jsoniter.Unmarshal([]byte(test.marshalled), &test.result)) if !er.FuzzyEquals(err, test.err) { @@ -1197,5 +1197,5 @@ func TestChainSvrCmds(t *testing.T) { i, test.name, err, err, test.err) continue } - } XXX -trn + } XXX -trn }*/ diff --git a/btcjson/chainsvrresults.go b/btcjson/chainsvrresults.go index 1d15d38d..b564c361 100644 --- a/btcjson/chainsvrresults.go +++ b/btcjson/chainsvrresults.go @@ -8,7 +8,7 @@ package btcjson import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // GetBlockHeaderVerboseResult models the data from the getblockheader command when @@ -236,9 +236,9 @@ type GetPeerInfoResult struct { } type GetNetworkInfoNetworks struct { - Name string `json:"name"` - Limited bool `json:"limited"` - Reachable bool `json:"reachable"` + Name string `json:"name"` + Limited bool `json:"limited"` + Reachable bool `json:"reachable"` } type GetNetworkInfoResult struct { diff --git a/btcjson/chainsvrresults_test.go b/btcjson/chainsvrresults_test.go index ff23e4b4..ad87f8e9 100644 --- a/btcjson/chainsvrresults_test.go +++ b/btcjson/chainsvrresults_test.go @@ -8,7 +8,7 @@ import ( "github.com/json-iterator/go" "testing" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestChainSvrCustomResults ensures any results that have custom marshalling diff --git a/btcjson/chainsvrwscmds_test.go b/btcjson/chainsvrwscmds_test.go index d4879111..32798c53 100644 --- a/btcjson/chainsvrwscmds_test.go +++ b/btcjson/chainsvrwscmds_test.go @@ -7,14 +7,14 @@ package btcjson_test import ( "bytes" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestChainSvrWsCmds tests all of the chain server websocket-specific commands diff --git a/btcjson/chainsvrwsntfns_test.go b/btcjson/chainsvrwsntfns_test.go index 2d2fea97..e96e7eeb 100644 --- a/btcjson/chainsvrwsntfns_test.go +++ b/btcjson/chainsvrwsntfns_test.go @@ -7,14 +7,14 @@ package btcjson_test import ( "bytes" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestChainSvrWsNtfns tests all of the chain server websocket-specific diff --git a/btcjson/chainsvrwsresults_test.go b/btcjson/chainsvrwsresults_test.go index 542d810b..6ced2177 100644 --- a/btcjson/chainsvrwsresults_test.go +++ b/btcjson/chainsvrwsresults_test.go @@ -9,7 +9,7 @@ import ( "github.com/json-iterator/go" "testing" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestChainSvrWsResults ensures any results that have custom marshalling diff --git a/btcjson/cmdinfo.go b/btcjson/cmdinfo.go index f6f9a19e..d59c2378 100644 --- a/btcjson/cmdinfo.go +++ b/btcjson/cmdinfo.go @@ -9,7 +9,7 @@ import ( "reflect" "strings" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // CmdMethod returns the method for the passed command. The provided command diff --git a/btcjson/cmdinfo_test.go b/btcjson/cmdinfo_test.go index 33cd434d..7f6ae40c 100644 --- a/btcjson/cmdinfo_test.go +++ b/btcjson/cmdinfo_test.go @@ -8,8 +8,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // TestCmdMethod tests the CmdMethod function to ensure it retunrs the expected diff --git a/btcjson/cmdparse.go b/btcjson/cmdparse.go index 5d86b9b9..e5880b26 100644 --- a/btcjson/cmdparse.go +++ b/btcjson/cmdparse.go @@ -12,7 +12,7 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // makeParams creates a slice of interface values for the given struct. diff --git a/btcjson/cmdparse_test.go b/btcjson/cmdparse_test.go index 4fdcf7ec..dd4055dc 100644 --- a/btcjson/cmdparse_test.go +++ b/btcjson/cmdparse_test.go @@ -11,9 +11,9 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestAssignField tests the assignField function handles supported combinations diff --git a/btcjson/error.go b/btcjson/error.go index 78d8c277..e428ac4e 100644 --- a/btcjson/error.go +++ b/btcjson/error.go @@ -5,7 +5,7 @@ package btcjson import ( - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // ErrorCode identifies a kind of error. These error codes are NOT used for diff --git a/btcjson/example_test.go b/btcjson/example_test.go index ef5aa330..68841cab 100644 --- a/btcjson/example_test.go +++ b/btcjson/example_test.go @@ -5,10 +5,10 @@ package btcjson_test import ( - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // This example demonstrates how to create and marshal a command into a JSON-RPC diff --git a/btcjson/help.go b/btcjson/help.go index f7aab762..1f23411a 100644 --- a/btcjson/help.go +++ b/btcjson/help.go @@ -11,7 +11,7 @@ import ( "strings" "text/tabwriter" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // baseHelpDescs house the various help labels, types, and example values used diff --git a/btcjson/help_test.go b/btcjson/help_test.go index 45ec263f..421d296e 100644 --- a/btcjson/help_test.go +++ b/btcjson/help_test.go @@ -8,9 +8,9 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestHelpReflectInternals ensures the various help functions which deal with diff --git a/btcjson/helpers_test.go b/btcjson/helpers_test.go index 5f90fb1f..8ec58a7a 100644 --- a/btcjson/helpers_test.go +++ b/btcjson/helpers_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestHelpers tests the various helper functions which create pointers to diff --git a/btcjson/jsonrpc.go b/btcjson/jsonrpc.go index 31f33db0..c727f727 100644 --- a/btcjson/jsonrpc.go +++ b/btcjson/jsonrpc.go @@ -5,11 +5,11 @@ package btcjson import ( - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) // RPCErrorCode represents an error code to be used as a part of an RPCError @@ -59,10 +59,10 @@ func IsValidIDType(id interface{}) bool { // requests, however this struct it being exported in case the caller wants to // construct raw requests for some reason. type Request struct { - Jsonrpc string `json:"jsonrpc"` - Method string `json:"method"` + Jsonrpc string `json:"jsonrpc"` + Method string `json:"method"` Params []jsoniter.RawMessage `json:"params"` - ID interface{} `json:"id"` + ID interface{} `json:"id"` } // NewRequest returns a new JSON-RPC 1.0 request object given the provided id, @@ -104,8 +104,8 @@ func NewRequest(id interface{}, method string, params []interface{}) (*Request, // empty. type Response struct { Result jsoniter.RawMessage `json:"result"` - Error *RPCErr `json:"error"` - ID *interface{} `json:"id"` + Error *RPCErr `json:"error"` + ID *interface{} `json:"id"` } func SerializeError(err er.R) *RPCErr { diff --git a/btcjson/jsonrpc_test.go b/btcjson/jsonrpc_test.go index 4237ebb8..50ce7336 100644 --- a/btcjson/jsonrpc_test.go +++ b/btcjson/jsonrpc_test.go @@ -8,9 +8,9 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) // TestIsValidIDType ensures the IsValidIDType function behaves as expected. @@ -120,13 +120,13 @@ func TestMiscErrors(t *testing.T) { // Force an error in MarshalResponse by giving it a result type that // can't be marshalled. -/* _, err = btcjson.MarshalResponse(1, make(chan int), nil) - if _, ok := er.Wrapped(err).(*json.UnsupportedTypeError); !ok { - wantErr := &json.UnsupportedTypeError{} - t.Errorf("MarshalResult: did not receive expected error - got "+ - "%v (%[1]T), want %T", err, wantErr) - return - } XXX -trn */ + /* _, err = btcjson.MarshalResponse(1, make(chan int), nil) + if _, ok := er.Wrapped(err).(*json.UnsupportedTypeError); !ok { + wantErr := &json.UnsupportedTypeError{} + t.Errorf("MarshalResult: did not receive expected error - got "+ + "%v (%[1]T), want %T", err, wantErr) + return + } XXX -trn */ } // TestRPCError tests the error output for the RPCError type. diff --git a/btcjson/jsonrpcerr.go b/btcjson/jsonrpcerr.go index 00e4ca51..77f8d627 100644 --- a/btcjson/jsonrpcerr.go +++ b/btcjson/jsonrpcerr.go @@ -4,7 +4,7 @@ package btcjson -import "github.com/pkt-cash/pktd/btcutil/er" +import "github.com/pkt-cash/PKT-FullNode/btcutil/er" // Err is an error type for the btcjson errors var Err er.ErrorType = er.NewErrorType("btcjson.Err") diff --git a/btcjson/register.go b/btcjson/register.go index 119291bd..9f1daf1e 100644 --- a/btcjson/register.go +++ b/btcjson/register.go @@ -5,15 +5,15 @@ package btcjson import ( - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "sort" "strconv" "strings" "sync" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // UsageFlag define flags that specify additional properties about the diff --git a/btcjson/register_test.go b/btcjson/register_test.go index cb6a64e5..3c31c07f 100644 --- a/btcjson/register_test.go +++ b/btcjson/register_test.go @@ -9,9 +9,9 @@ import ( "sort" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestUsageFlagStringer tests the stringized output for the UsageFlag type. diff --git a/btcjson/walletsvrcmds_test.go b/btcjson/walletsvrcmds_test.go index 5fb4422d..efd40e01 100644 --- a/btcjson/walletsvrcmds_test.go +++ b/btcjson/walletsvrcmds_test.go @@ -11,9 +11,9 @@ import ( "testing" jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestWalletSvrCmds tests all of the wallet server commands marshal and diff --git a/btcjson/walletsvrresults.go b/btcjson/walletsvrresults.go index 63498ac2..5f1b7ce8 100644 --- a/btcjson/walletsvrresults.go +++ b/btcjson/walletsvrresults.go @@ -8,7 +8,7 @@ package btcjson import ( "time" - "github.com/pkt-cash/pktd/peer" + "github.com/pkt-cash/PKT-FullNode/peer" ) // GetTransactionDetailsResult models the details data from the gettransaction command. diff --git a/btcjson/walletsvrwscmds_test.go b/btcjson/walletsvrwscmds_test.go index 32d5d69f..6142a3fa 100644 --- a/btcjson/walletsvrwscmds_test.go +++ b/btcjson/walletsvrwscmds_test.go @@ -6,14 +6,14 @@ package btcjson_test import ( "bytes" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestWalletSvrWsCmds tests all of the wallet server websocket-specific diff --git a/btcjson/walletsvrwsntfns_test.go b/btcjson/walletsvrwsntfns_test.go index fcb89656..d16e6078 100644 --- a/btcjson/walletsvrwsntfns_test.go +++ b/btcjson/walletsvrwsntfns_test.go @@ -6,14 +6,14 @@ package btcjson_test import ( "bytes" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // TestWalletSvrWsNtfns tests all of the chain server websocket-specific diff --git a/btcutil/address.go b/btcutil/address.go index 49cc03f9..9ef2c7ba 100644 --- a/btcutil/address.go +++ b/btcutil/address.go @@ -13,13 +13,13 @@ import ( "strconv" "strings" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/base58" - "github.com/pkt-cash/pktd/btcutil/bech32" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/bech32" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // UnsupportedWitnessVerError describes an error where a segwit address being diff --git a/btcutil/address_test.go b/btcutil/address_test.go index 00fada41..3a166b09 100644 --- a/btcutil/address_test.go +++ b/btcutil/address_test.go @@ -12,9 +12,9 @@ import ( "strings" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) type CustomParamStruct struct { diff --git a/btcutil/amount.go b/btcutil/amount.go index e8f3fa53..8cc1ed89 100644 --- a/btcutil/amount.go +++ b/btcutil/amount.go @@ -8,8 +8,8 @@ import ( "math" "strconv" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) // Amount represents the base bitcoin monetary unit (colloquially referred diff --git a/btcutil/amount_test.go b/btcutil/amount_test.go index 95df6fce..47270e22 100644 --- a/btcutil/amount_test.go +++ b/btcutil/amount_test.go @@ -8,7 +8,7 @@ import ( "math" "testing" - . "github.com/pkt-cash/pktd/btcutil" + . "github.com/pkt-cash/PKT-FullNode/btcutil" ) func TestAmountCreation(t *testing.T) { diff --git a/btcutil/appdata_test.go b/btcutil/appdata_test.go index 5d286d0b..f1e98bd1 100644 --- a/btcutil/appdata_test.go +++ b/btcutil/appdata_test.go @@ -12,7 +12,7 @@ import ( "testing" "unicode" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) // TestAppDataDir tests the API for AppDataDir to ensure it gives expected diff --git a/btcutil/base58/base58_test.go b/btcutil/base58/base58_test.go index 1668a7df..c7e9b852 100644 --- a/btcutil/base58/base58_test.go +++ b/btcutil/base58/base58_test.go @@ -9,7 +9,7 @@ import ( "encoding/hex" "testing" - "github.com/pkt-cash/pktd/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" ) var stringTests = []struct { diff --git a/btcutil/base58/base58bench_test.go b/btcutil/base58/base58bench_test.go index 566f8282..91a0b152 100644 --- a/btcutil/base58/base58bench_test.go +++ b/btcutil/base58/base58bench_test.go @@ -8,7 +8,7 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" ) var ( diff --git a/btcutil/base58/base58check.go b/btcutil/base58/base58check.go index 0bc3302e..80ec4680 100644 --- a/btcutil/base58/base58check.go +++ b/btcutil/base58/base58check.go @@ -7,7 +7,7 @@ package base58 import ( "crypto/sha256" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) var Err er.ErrorType = er.NewErrorType("base58.Err") diff --git a/btcutil/base58/base58check_test.go b/btcutil/base58/base58check_test.go index ef5b8c19..e0e54592 100644 --- a/btcutil/base58/base58check_test.go +++ b/btcutil/base58/base58check_test.go @@ -7,7 +7,7 @@ package base58_test import ( "testing" - "github.com/pkt-cash/pktd/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" ) var checkEncodingStringTests = []struct { diff --git a/btcutil/base58/example_test.go b/btcutil/base58/example_test.go index eb03d661..cddadd56 100644 --- a/btcutil/base58/example_test.go +++ b/btcutil/base58/example_test.go @@ -7,7 +7,7 @@ package base58_test import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" ) // This example demonstrates how to decode modified base58 encoded data. diff --git a/btcutil/base58/genalphabet.go b/btcutil/base58/genalphabet.go index 643fb4c3..123d07a6 100644 --- a/btcutil/base58/genalphabet.go +++ b/btcutil/base58/genalphabet.go @@ -2,7 +2,8 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. -//+build ignore +//go:build ignore +// +build ignore package main @@ -13,7 +14,7 @@ import ( "os" "strconv" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) var ( diff --git a/btcutil/bech32/bech32.go b/btcutil/bech32/bech32.go index bc0bb444..79c6a8b5 100644 --- a/btcutil/bech32/bech32.go +++ b/btcutil/bech32/bech32.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) const charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" diff --git a/btcutil/bech32/bech32_test.go b/btcutil/bech32/bech32_test.go index 2f49401a..45515042 100644 --- a/btcutil/bech32/bech32_test.go +++ b/btcutil/bech32/bech32_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/pkt-cash/pktd/btcutil/bech32" + "github.com/pkt-cash/PKT-FullNode/btcutil/bech32" ) func TestBech32(t *testing.T) { diff --git a/btcutil/bech32/example_test.go b/btcutil/bech32/example_test.go index 4c5d2e9f..3d555269 100644 --- a/btcutil/bech32/example_test.go +++ b/btcutil/bech32/example_test.go @@ -8,7 +8,7 @@ import ( "encoding/hex" "fmt" - "github.com/pkt-cash/pktd/btcutil/bech32" + "github.com/pkt-cash/PKT-FullNode/btcutil/bech32" ) // This example demonstrates how to decode a bech32 encoded string. diff --git a/btcutil/block.go b/btcutil/block.go index 82c36719..a7a4bcc3 100644 --- a/btcutil/block.go +++ b/btcutil/block.go @@ -9,10 +9,10 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // OutOfRangeError describes an error due to accessing an element that is out diff --git a/btcutil/block_test.go b/btcutil/block_test.go index 731b05e6..f6581e64 100644 --- a/btcutil/block_test.go +++ b/btcutil/block_test.go @@ -12,10 +12,10 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestBlock tests the API for Block. diff --git a/btcutil/bloom/example_test.go b/btcutil/bloom/example_test.go index 7c4aeac4..968e02bb 100644 --- a/btcutil/bloom/example_test.go +++ b/btcutil/bloom/example_test.go @@ -9,9 +9,9 @@ import ( "math/rand" "time" - "github.com/pkt-cash/pktd/btcutil/bloom" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/bloom" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // This example demonstrates how to create a new bloom filter, add a transaction diff --git a/btcutil/bloom/filter.go b/btcutil/bloom/filter.go index 2234b3ac..123cdb2c 100644 --- a/btcutil/bloom/filter.go +++ b/btcutil/bloom/filter.go @@ -9,10 +9,10 @@ import ( "math" "sync" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) // ln2Squared is simply the square of the natural log of 2. diff --git a/btcutil/bloom/filter_test.go b/btcutil/bloom/filter_test.go index 0bfa73fe..d28353e4 100644 --- a/btcutil/bloom/filter_test.go +++ b/btcutil/bloom/filter_test.go @@ -8,12 +8,12 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/bloom" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/bloom" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestFilterLarge ensures a maximum sized filter can be created. diff --git a/btcutil/bloom/merkleblock.go b/btcutil/bloom/merkleblock.go index 93a4932e..6152943c 100644 --- a/btcutil/bloom/merkleblock.go +++ b/btcutil/bloom/merkleblock.go @@ -5,10 +5,10 @@ package bloom import ( - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // merkleBlock is used to house intermediate information needed to generate a diff --git a/btcutil/bloom/merkleblock_test.go b/btcutil/bloom/merkleblock_test.go index 5fe60a38..26215fbb 100644 --- a/btcutil/bloom/merkleblock_test.go +++ b/btcutil/bloom/merkleblock_test.go @@ -8,12 +8,12 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/bloom" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/bloom" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) func TestMerkleBlock3(t *testing.T) { diff --git a/btcutil/bloom/murmurhash3_test.go b/btcutil/bloom/murmurhash3_test.go index e51cae68..fcb13d59 100644 --- a/btcutil/bloom/murmurhash3_test.go +++ b/btcutil/bloom/murmurhash3_test.go @@ -7,7 +7,7 @@ package bloom_test import ( "testing" - "github.com/pkt-cash/pktd/btcutil/bloom" + "github.com/pkt-cash/PKT-FullNode/btcutil/bloom" ) // TestMurmurHash3 ensure the MurmurHash3 function produces the correct hash diff --git a/btcutil/bloom/test_test.go b/btcutil/bloom/test_test.go index fdbb197f..8471531f 100644 --- a/btcutil/bloom/test_test.go +++ b/btcutil/bloom/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/btcutil/certgen.go b/btcutil/certgen.go index 0de2bb9d..33a4545e 100644 --- a/btcutil/certgen.go +++ b/btcutil/certgen.go @@ -18,7 +18,7 @@ import ( "os" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // NewTLSCertPair returns a new PEM-encoded x.509 certificate pair diff --git a/btcutil/certgen_test.go b/btcutil/certgen_test.go index d061c89e..40db4c60 100644 --- a/btcutil/certgen_test.go +++ b/btcutil/certgen_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" //"github.com/davecgh/go-spew/spew" ) diff --git a/btcutil/coinset/coins.go b/btcutil/coinset/coins.go index 961a3fab..d2563e71 100644 --- a/btcutil/coinset/coins.go +++ b/btcutil/coinset/coins.go @@ -8,12 +8,12 @@ import ( "container/list" "sort" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/constants" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // Coin represents a spendable transaction outpoint diff --git a/btcutil/coinset/coins_test.go b/btcutil/coinset/coins_test.go index 2fb9dd55..e424e384 100644 --- a/btcutil/coinset/coins_test.go +++ b/btcutil/coinset/coins_test.go @@ -11,11 +11,11 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/coinset" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/coinset" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) type TestCoin struct { diff --git a/btcutil/er/er.go b/btcutil/er/er.go index 59726f6c..424363f0 100644 --- a/btcutil/er/er.go +++ b/btcutil/er/er.go @@ -9,7 +9,7 @@ import ( "runtime/debug" "strings" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) // GenericErrorType is for packages with only one or two error codes @@ -273,7 +273,7 @@ func (e err) Stack() []string { // goroutine 1 [running]: // runtime/debug.Stack(0x10df124, 0xc00007cf70, 0xc0000180c0) // /usr/local/go/src/runtime/debug/stack.go:24 +0x9d - // github.com/pkt-cash/pktd/btcutil/er.captureStack(...) + // github.com/pkt-cash/PKT-FullNode/btcutil/er.captureStack(...) // /Users/user/wrk/pkt-cash/pktd/btcutil/er/er.go:283 s = s[5:] var stack []string diff --git a/btcutil/example_test.go b/btcutil/example_test.go index 3f810c61..57d7d67f 100644 --- a/btcutil/example_test.go +++ b/btcutil/example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) func ExampleAmount() { diff --git a/btcutil/gcs/builder/builder.go b/btcutil/gcs/builder/builder.go index 36d6d991..8e8ee8ba 100644 --- a/btcutil/gcs/builder/builder.go +++ b/btcutil/gcs/builder/builder.go @@ -9,11 +9,11 @@ import ( "crypto/rand" "math" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/gcs" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/btcutil/gcs/builder/builder_test.go b/btcutil/gcs/builder/builder_test.go index 7322f23b..2e8cec16 100644 --- a/btcutil/gcs/builder/builder_test.go +++ b/btcutil/gcs/builder/builder_test.go @@ -9,15 +9,15 @@ import ( "encoding/hex" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/gcs" - "github.com/pkt-cash/pktd/btcutil/gcs/builder" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs/builder" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) var ( diff --git a/btcutil/gcs/gcs.go b/btcutil/gcs/gcs.go index 4d6b29df..e12cf2c3 100644 --- a/btcutil/gcs/gcs.go +++ b/btcutil/gcs/gcs.go @@ -13,8 +13,8 @@ import ( "github.com/aead/siphash" "github.com/kkdai/bstream" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // Inspired by https://github.com/rasky/gcs diff --git a/btcutil/gcs/gcs_test.go b/btcutil/gcs/gcs_test.go index a7770141..f1765be5 100644 --- a/btcutil/gcs/gcs_test.go +++ b/btcutil/gcs/gcs_test.go @@ -11,8 +11,8 @@ import ( "math/rand" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/gcs" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs" ) var ( diff --git a/btcutil/gcs/gcsbench_test.go b/btcutil/gcs/gcsbench_test.go index 3d3299ff..6fa064b3 100644 --- a/btcutil/gcs/gcsbench_test.go +++ b/btcutil/gcs/gcsbench_test.go @@ -10,8 +10,8 @@ import ( "math/rand" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/gcs" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/gcs" ) func genRandFilterElements(numElements uint) ([][]byte, er.R) { diff --git a/btcutil/hdkeychain/bench_test.go b/btcutil/hdkeychain/bench_test.go index e2084408..6607a066 100644 --- a/btcutil/hdkeychain/bench_test.go +++ b/btcutil/hdkeychain/bench_test.go @@ -7,7 +7,7 @@ package hdkeychain_test import ( "testing" - "github.com/pkt-cash/pktd/btcutil/hdkeychain" + "github.com/pkt-cash/PKT-FullNode/btcutil/hdkeychain" ) // bip0032MasterPriv1 is the master private extended key from the first set of diff --git a/btcutil/hdkeychain/example_test.go b/btcutil/hdkeychain/example_test.go index 86002150..a90803bc 100644 --- a/btcutil/hdkeychain/example_test.go +++ b/btcutil/hdkeychain/example_test.go @@ -7,8 +7,8 @@ package hdkeychain_test import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/hdkeychain" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcutil/hdkeychain" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // This example demonstrates how to generate a cryptographically random seed diff --git a/btcutil/hdkeychain/extendedkey.go b/btcutil/hdkeychain/extendedkey.go index 1cd8e556..6ad86472 100644 --- a/btcutil/hdkeychain/extendedkey.go +++ b/btcutil/hdkeychain/extendedkey.go @@ -18,13 +18,13 @@ import ( "fmt" "math/big" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/base58" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( @@ -372,7 +372,7 @@ func (k *ExtendedKey) IsAffectedByIssue172() bool { // 1-of-256 hardened derivations will be wrong. See note in the Derive method // and IsAffectedByIssue172. func (k *ExtendedKey) DeriveNonStandard(i uint32) (*ExtendedKey, er.R) { - // Prevent derivation of children beyond the max allowed depth. + // Prevent derivation of children beyond the max allowed depth. if k.depth == maxUint8 { return nil, ErrDeriveBeyondMaxDepth.Default() } diff --git a/btcutil/hdkeychain/extendedkey_test.go b/btcutil/hdkeychain/extendedkey_test.go index 6005fb45..5100c2c2 100644 --- a/btcutil/hdkeychain/extendedkey_test.go +++ b/btcutil/hdkeychain/extendedkey_test.go @@ -15,9 +15,9 @@ import ( "math" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // TestBIP0032Vectors tests the vectors provided by [BIP32] to ensure the @@ -1069,7 +1069,7 @@ func TestMaximumDepth(t *testing.T) { } } -// TestLeadingZero ensures that deriving children from keys with a leading zero byte is +// TestLeadingZero ensures that deriving children from keys with a leading zero byte is // actually done according to the BIP-32 standard and that the legacy method generates // a backwards-compatible result. func TestLeadingZero(t *testing.T) { diff --git a/btcutil/internal_test.go b/btcutil/internal_test.go index b2d943a9..81eafa3f 100644 --- a/btcutil/internal_test.go +++ b/btcutil/internal_test.go @@ -12,9 +12,9 @@ interface. The functions are only exported while the tests are being run. package btcutil import ( - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/base58" - "github.com/pkt-cash/pktd/btcutil/bech32" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/btcutil/bech32" ) // SetBlockBytes sets the internal serialized block byte buffer to the passed diff --git a/btcutil/net.go b/btcutil/net.go index c13b9ae5..966b1b99 100644 --- a/btcutil/net.go +++ b/btcutil/net.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build !appengine // +build !appengine package btcutil @@ -9,7 +10,7 @@ package btcutil import ( "net" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // interfaceAddrs returns a list of the system's network interface addresses. diff --git a/btcutil/net_noop.go b/btcutil/net_noop.go index e3a0d208..a9410fef 100644 --- a/btcutil/net_noop.go +++ b/btcutil/net_noop.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build appengine // +build appengine package btcutil @@ -9,7 +10,7 @@ package btcutil import ( "net" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // interfaceAddrs returns a list of the system's network interface addresses. diff --git a/btcutil/psbt/bip32.go b/btcutil/psbt/bip32.go index 9411599b..bc73572f 100644 --- a/btcutil/psbt/bip32.go +++ b/btcutil/psbt/bip32.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Bip32Derivation encapsulates the data for the input and output diff --git a/btcutil/psbt/creator.go b/btcutil/psbt/creator.go index f99332ea..5168b69c 100644 --- a/btcutil/psbt/creator.go +++ b/btcutil/psbt/creator.go @@ -5,8 +5,8 @@ package psbt import ( - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // MinTxVersion is the lowest transaction version that we'll permit. diff --git a/btcutil/psbt/extractor.go b/btcutil/psbt/extractor.go index 8a9c4082..c5895e7f 100644 --- a/btcutil/psbt/extractor.go +++ b/btcutil/psbt/extractor.go @@ -12,9 +12,9 @@ package psbt import ( "bytes" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" ) // Extract takes a finalized psbt.Packet and outputs a finalized transaction diff --git a/btcutil/psbt/finalizer.go b/btcutil/psbt/finalizer.go index 0102f60c..de8ea3e8 100644 --- a/btcutil/psbt/finalizer.go +++ b/btcutil/psbt/finalizer.go @@ -12,10 +12,10 @@ package psbt // multisig and no other custom script. import ( - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" ) // isFinalized considers this input finalized if it contains at least one of diff --git a/btcutil/psbt/partial_input.go b/btcutil/psbt/partial_input.go index 7946dfce..f51b6ee2 100644 --- a/btcutil/psbt/partial_input.go +++ b/btcutil/psbt/partial_input.go @@ -6,9 +6,9 @@ import ( "io" "sort" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" ) // PInput is a struct encapsulating all the data that can be attached to any diff --git a/btcutil/psbt/partial_output.go b/btcutil/psbt/partial_output.go index 82e16f93..7a66eb70 100644 --- a/btcutil/psbt/partial_output.go +++ b/btcutil/psbt/partial_output.go @@ -5,8 +5,8 @@ import ( "io" "sort" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // POutput is a struct encapsulating all the data that can be attached diff --git a/btcutil/psbt/partialsig.go b/btcutil/psbt/partialsig.go index a812b81b..fb3ee3e7 100644 --- a/btcutil/psbt/partialsig.go +++ b/btcutil/psbt/partialsig.go @@ -3,7 +3,7 @@ package psbt import ( "bytes" - "github.com/pkt-cash/pktd/btcec" + "github.com/pkt-cash/PKT-FullNode/btcec" ) // PartialSig encapsulate a (BTC public key, ECDSA signature) diff --git a/btcutil/psbt/psbt.go b/btcutil/psbt/psbt.go index b7094b16..f439960f 100644 --- a/btcutil/psbt/psbt.go +++ b/btcutil/psbt/psbt.go @@ -13,8 +13,8 @@ import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // psbtMagicLength is the length of the magic bytes used to signal the start of diff --git a/btcutil/psbt/psbt_test.go b/btcutil/psbt/psbt_test.go index 45b225e4..687dee58 100644 --- a/btcutil/psbt/psbt_test.go +++ b/btcutil/psbt/psbt_test.go @@ -13,13 +13,13 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) // Test vectors from: diff --git a/btcutil/psbt/signer.go b/btcutil/psbt/signer.go index 2d8ac244..6d87b68d 100644 --- a/btcutil/psbt/signer.go +++ b/btcutil/psbt/signer.go @@ -10,8 +10,8 @@ package psbt // is in the correct state. import ( - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript" ) // SignOutcome is a enum-like value that expresses the outcome of a call to the diff --git a/btcutil/psbt/sort.go b/btcutil/psbt/sort.go index e6402ad2..32054324 100644 --- a/btcutil/psbt/sort.go +++ b/btcutil/psbt/sort.go @@ -4,8 +4,8 @@ import ( "bytes" "sort" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // InPlaceSort modifies the passed packet's wire TX inputs and outputs to be diff --git a/btcutil/psbt/sort_test.go b/btcutil/psbt/sort_test.go index 980ee558..c10c67fc 100644 --- a/btcutil/psbt/sort_test.go +++ b/btcutil/psbt/sort_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) func TestInPlaceSort(t *testing.T) { diff --git a/btcutil/psbt/updater.go b/btcutil/psbt/updater.go index 96d342e8..f0c17d70 100644 --- a/btcutil/psbt/updater.go +++ b/btcutil/psbt/updater.go @@ -14,12 +14,12 @@ import ( "bytes" "crypto/sha256" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire" ) // Updater encapsulates the role 'Updater' as specified in BIP174; it accepts diff --git a/btcutil/psbt/utils.go b/btcutil/psbt/utils.go index 730aa545..582fc7a9 100644 --- a/btcutil/psbt/utils.go +++ b/btcutil/psbt/utils.go @@ -10,10 +10,10 @@ import ( "io" "sort" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" ) // WriteTxWitness is a utility function due to non-exported witness diff --git a/btcutil/psbt/utils_test.go b/btcutil/psbt/utils_test.go index b618161e..eeb48fa8 100644 --- a/btcutil/psbt/utils_test.go +++ b/btcutil/psbt/utils_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) func TestSumUtxoInputValues(t *testing.T) { diff --git a/btcutil/test_test.go b/btcutil/test_test.go index 0e1c5631..8e08c0ff 100644 --- a/btcutil/test_test.go +++ b/btcutil/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/btcutil/tx.go b/btcutil/tx.go index ca3f0961..db101e7f 100644 --- a/btcutil/tx.go +++ b/btcutil/tx.go @@ -8,10 +8,10 @@ import ( "bytes" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TxIndexUnknown is the value returned for a transaction index that is unknown. diff --git a/btcutil/tx_test.go b/btcutil/tx_test.go index 9b154149..b134198b 100644 --- a/btcutil/tx_test.go +++ b/btcutil/tx_test.go @@ -11,9 +11,9 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestTx tests the API for Tx. diff --git a/btcutil/txsort/txsort.go b/btcutil/txsort/txsort.go index 21093845..6648444d 100644 --- a/btcutil/txsort/txsort.go +++ b/btcutil/txsort/txsort.go @@ -11,8 +11,8 @@ import ( "bytes" "sort" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // InPlaceSort modifies the passed transaction inputs and outputs to be sorted diff --git a/btcutil/txsort/txsort_test.go b/btcutil/txsort/txsort_test.go index bd6de806..22b4a519 100644 --- a/btcutil/txsort/txsort_test.go +++ b/btcutil/txsort/txsort_test.go @@ -10,9 +10,9 @@ import ( "path/filepath" "testing" - "github.com/pkt-cash/pktd/btcutil/txsort" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/txsort" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestSort ensures the transaction sorting works according to the BIP. diff --git a/btcutil/util/util.go b/btcutil/util/util.go index 4087377d..972830ae 100644 --- a/btcutil/util/util.go +++ b/btcutil/util/util.go @@ -8,7 +8,7 @@ import ( "testing" "unsafe" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" "github.com/stretchr/testify/require" ) diff --git a/btcutil/wif.go b/btcutil/wif.go index 17c450de..1a208445 100644 --- a/btcutil/wif.go +++ b/btcutil/wif.go @@ -8,12 +8,12 @@ import ( "bytes" "errors" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/base58" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/base58" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // ErrMalformedPrivateKey describes an error where a WIF-encoded private diff --git a/btcutil/wif_test.go b/btcutil/wif_test.go index 58a6c3da..be3c3b75 100644 --- a/btcutil/wif_test.go +++ b/btcutil/wif_test.go @@ -7,9 +7,9 @@ package btcutil_test import ( "testing" - "github.com/pkt-cash/pktd/btcec" - . "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcec" + . "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) func TestEncodeDecodeWIF(t *testing.T) { diff --git a/chaincfg/chainhash/hash.go b/chaincfg/chainhash/hash.go index fb50c4e3..3feea108 100644 --- a/chaincfg/chainhash/hash.go +++ b/chaincfg/chainhash/hash.go @@ -9,7 +9,7 @@ import ( "encoding/hex" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // HashSize of array used to store hashes. See Hash. diff --git a/chaincfg/chainhash/hash_test.go b/chaincfg/chainhash/hash_test.go index b041ed74..2769556f 100644 --- a/chaincfg/chainhash/hash_test.go +++ b/chaincfg/chainhash/hash_test.go @@ -9,7 +9,7 @@ import ( "encoding/hex" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // mainNetGenesisHash is the hash of the first block in the block chain for the diff --git a/chaincfg/doc.go b/chaincfg/doc.go index 70633e82..db731663 100644 --- a/chaincfg/doc.go +++ b/chaincfg/doc.go @@ -25,8 +25,8 @@ // "fmt" // "log" // -// "github.com/pkt-cash/pktd/btcutil" -// "github.com/pkt-cash/pktd/chaincfg" +// "github.com/pkt-cash/PKT-FullNode/btcutil" +// "github.com/pkt-cash/PKT-FullNode/chaincfg" // ) // // var testnet = flag.Bool("testnet", false, "operate on the testnet Bitcoin network") diff --git a/chaincfg/genesis/genesis.go b/chaincfg/genesis/genesis.go index 9c6724e8..0b820d2c 100644 --- a/chaincfg/genesis/genesis.go +++ b/chaincfg/genesis/genesis.go @@ -11,9 +11,9 @@ import ( "fmt" "time" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) var blockReg = make(map[chainhash.Hash]wire.MsgBlock) diff --git a/chaincfg/globalcfg/util.go b/chaincfg/globalcfg/util.go index 1c5fd5c8..32651047 100644 --- a/chaincfg/globalcfg/util.go +++ b/chaincfg/globalcfg/util.go @@ -7,7 +7,7 @@ package globalcfg import ( "math" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Copyright (c) 2013, 2014 The btcsuite developers diff --git a/chaincfg/params.go b/chaincfg/params.go index b7565c69..552a1756 100644 --- a/chaincfg/params.go +++ b/chaincfg/params.go @@ -11,12 +11,12 @@ import ( "strings" "time" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) // 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 85153c5d..af065704 100644 --- a/chaincfg/register_test.go +++ b/chaincfg/register_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - . "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + . "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // Define some of the required parameters for a user-registered diff --git a/chaincfg/test_test.go b/chaincfg/test_test.go index c3767f22..3480be89 100644 --- a/chaincfg/test_test.go +++ b/chaincfg/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/cmd/checksig/checksig.go b/cmd/checksig/checksig.go index 714bc809..d35756a8 100644 --- a/cmd/checksig/checksig.go +++ b/cmd/checksig/checksig.go @@ -6,12 +6,12 @@ import ( "fmt" "os" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/pktconfig/version" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/wire" ) func usage() { diff --git a/cmd/compact2big/compact2big.go b/cmd/compact2big/compact2big.go index 114b0ab2..4183ac26 100644 --- a/cmd/compact2big/compact2big.go +++ b/cmd/compact2big/compact2big.go @@ -5,8 +5,8 @@ import ( "os" "strconv" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) func usage() { diff --git a/cmd/gencerts/gencerts.go b/cmd/gencerts/gencerts.go index fe87869b..dc67548c 100644 --- a/cmd/gencerts/gencerts.go +++ b/cmd/gencerts/gencerts.go @@ -13,8 +13,8 @@ import ( "time" flags "github.com/jessevdk/go-flags" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) type config struct { diff --git a/cmd/pktctl/config.go b/cmd/pktctl/config.go index 4b66b233..5ec054c2 100644 --- a/cmd/pktctl/config.go +++ b/cmd/pktctl/config.go @@ -11,13 +11,13 @@ import ( "path/filepath" "strings" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" flags "github.com/jessevdk/go-flags" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) const ( diff --git a/cmd/pktctl/httpclient.go b/cmd/pktctl/httpclient.go index 2fc91775..1a6393bf 100644 --- a/cmd/pktctl/httpclient.go +++ b/cmd/pktctl/httpclient.go @@ -4,17 +4,17 @@ import ( "bytes" "crypto/tls" "crypto/x509" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "io/ioutil" "net" "net/http" "os" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // newHTTPClient returns a new HTTP client that is configured according diff --git a/cmd/pktctl/pktctl.go b/cmd/pktctl/pktctl.go index d302faa1..5463b423 100644 --- a/cmd/pktctl/pktctl.go +++ b/cmd/pktctl/pktctl.go @@ -12,8 +12,8 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) const ( diff --git a/cmd/tar2work/tar2work.go b/cmd/tar2work/tar2work.go index f70ff6ef..82c79530 100644 --- a/cmd/tar2work/tar2work.go +++ b/cmd/tar2work/tar2work.go @@ -5,8 +5,8 @@ import ( "math/big" "os" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) func usage() { diff --git a/config.go b/config.go index eecf4bcf..16bfcad3 100644 --- a/config.go +++ b/config.go @@ -19,19 +19,19 @@ import ( "time" flags "github.com/jessevdk/go-flags" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" - "github.com/pkt-cash/pktd/mempool" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/pktconfig/version" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/mempool" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) const ( diff --git a/connmgr/connmanager.go b/connmgr/connmanager.go index 928e000f..8f1b9c42 100644 --- a/connmgr/connmanager.go +++ b/connmgr/connmanager.go @@ -12,8 +12,8 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) // maxFailedAttempts is the maximum number of successive failed connection diff --git a/connmgr/connmanager_test.go b/connmgr/connmanager_test.go index 3e40280d..a3cb2292 100644 --- a/connmgr/connmanager_test.go +++ b/connmgr/connmanager_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) func init() { @@ -685,4 +685,3 @@ func TestConnReqString(t *testing.T) { cr2 := &ConnReq{} _ = cr2.String() } - diff --git a/connmgr/seed.go b/connmgr/seed.go index 78c72917..0de737b3 100644 --- a/connmgr/seed.go +++ b/connmgr/seed.go @@ -11,12 +11,12 @@ import ( "strconv" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/connmgr/tor.go b/connmgr/tor.go index 4247bf5f..98e70876 100644 --- a/connmgr/tor.go +++ b/connmgr/tor.go @@ -8,7 +8,7 @@ import ( "encoding/binary" "net" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) const ( diff --git a/contrib/build/build.go b/contrib/build/build.go index e3678290..b1c163a3 100644 --- a/contrib/build/build.go +++ b/contrib/build/build.go @@ -96,7 +96,7 @@ func buildStr() string { } func ldflags() string { - return "-X github.com/pkt-cash/pktd/pktconfig/version.appBuild=" + buildStr() + return "-X github.com/pkt-cash/PKT-FullNode/pktconfig/version.appBuild=" + buildStr() } func test() { diff --git a/database/README.md b/database/README.md index 47d826d6..21930b5d 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 pktd. When a client wants programmatic access to the data provided by pktd, they'll -likely want to use the [rpcclient](https://github.com/pkt-cash/pktd/tree/master/rpcclient) -package which makes use of the [JSON-RPC API](https://github.com/pkt-cash/pktd/tree/master/docs/json_rpc_api.md). +likely want to use the [rpcclient](https://github.com/pkt-cash/PKT-FullNode/tree/master/rpcclient) +package which makes use of the [JSON-RPC API](https://github.com/pkt-cash/PKT-FullNode/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/driver.go b/database/driver.go index 778fdfc9..2d25c56f 100644 --- a/database/driver.go +++ b/database/driver.go @@ -7,7 +7,7 @@ package database import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Driver defines a structure for backend drivers to use when they registered diff --git a/database/driver_test.go b/database/driver_test.go index 34800665..43eca607 100644 --- a/database/driver_test.go +++ b/database/driver_test.go @@ -8,10 +8,10 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" ) // TestAddDuplicateDriver ensures that adding a duplicate driver does not diff --git a/database/error.go b/database/error.go index 047b5609..69b3c4d2 100644 --- a/database/error.go +++ b/database/error.go @@ -5,7 +5,7 @@ package database import ( - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Err identifies a kind of error for the database @@ -118,4 +118,3 @@ var ( func makeError(c *er.ErrorCode, desc string, err er.R) er.R { return c.New(desc, err) } - diff --git a/database/example_test.go b/database/example_test.go index e57ca180..d55a6350 100644 --- a/database/example_test.go +++ b/database/example_test.go @@ -10,14 +10,14 @@ import ( "os" "path/filepath" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/wire/protocol" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/database" - _ "github.com/pkt-cash/pktd/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/database" + _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" ) // This example demonstrates creating a new database. @@ -25,8 +25,8 @@ func ExampleCreate() { // This example assumes the ffldb driver is imported. // // import ( - // "github.com/pkt-cash/pktd/database" - // _ "github.com/pkt-cash/pktd/database/ffldb" + // "github.com/pkt-cash/PKT-FullNode/database" + // _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" // ) // Create a database and schedule it to be closed and removed on exit. @@ -51,8 +51,8 @@ func Example_basicUsage() { // This example assumes the ffldb driver is imported. // // import ( - // "github.com/pkt-cash/pktd/database" - // _ "github.com/pkt-cash/pktd/database/ffldb" + // "github.com/pkt-cash/PKT-FullNode/database" + // _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" // ) // Create a database and schedule it to be closed and removed on exit. @@ -117,8 +117,8 @@ func Example_blockStorageAndRetrieval() { // This example assumes the ffldb driver is imported. // // import ( - // "github.com/pkt-cash/pktd/database" - // _ "github.com/pkt-cash/pktd/database/ffldb" + // "github.com/pkt-cash/PKT-FullNode/database" + // _ "github.com/pkt-cash/PKT-FullNode/database/ffldb" // ) // Create a database and schedule it to be closed and removed on exit. diff --git a/database/ffldb/bench_test.go b/database/ffldb/bench_test.go index 2307638a..efd367c9 100644 --- a/database/ffldb/bench_test.go +++ b/database/ffldb/bench_test.go @@ -9,12 +9,12 @@ import ( "path/filepath" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/database" ) // BenchmarkBlockHeader benchmarks how long it takes to load the mainnet genesis diff --git a/database/ffldb/blockio.go b/database/ffldb/blockio.go index b951b850..7eb6ef12 100644 --- a/database/ffldb/blockio.go +++ b/database/ffldb/blockio.go @@ -17,12 +17,12 @@ import ( "path/filepath" "sync" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" ) const ( diff --git a/database/ffldb/db.go b/database/ffldb/db.go index a0d35fa6..59e86d6a 100644 --- a/database/ffldb/db.go +++ b/database/ffldb/db.go @@ -14,22 +14,22 @@ import ( "sort" "sync" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/database/internal/treap" - "github.com/pkt-cash/pktd/goleveldb/leveldb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - ldberrors "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/database/internal/treap" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + ldberrors "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/database/ffldb/dbcache.go b/database/ffldb/dbcache.go index 3dcfde77..d063693c 100644 --- a/database/ffldb/dbcache.go +++ b/database/ffldb/dbcache.go @@ -10,12 +10,12 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/database/internal/treap" - "github.com/pkt-cash/pktd/goleveldb/leveldb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/database/internal/treap" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) const ( diff --git a/database/ffldb/driver.go b/database/ffldb/driver.go index 85c26f3f..b53beb4f 100644 --- a/database/ffldb/driver.go +++ b/database/ffldb/driver.go @@ -7,10 +7,10 @@ package ffldb import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/database" ) const ( diff --git a/database/ffldb/driver_test.go b/database/ffldb/driver_test.go index aa096878..5e020a17 100644 --- a/database/ffldb/driver_test.go +++ b/database/ffldb/driver_test.go @@ -12,13 +12,13 @@ import ( "runtime" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/database/ffldb" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/database/ffldb" ) // dbType is the database type name for this driver. @@ -278,7 +278,7 @@ func TestInterface(t *testing.T) { } // Run all of the interface tests against the database. - runtime.GOMAXPROCS(runtime.NumCPU()*6) + runtime.GOMAXPROCS(runtime.NumCPU() * 6) // Change the maximum file size to a small value to force multiple flat // files with the test data set. diff --git a/database/ffldb/export_test.go b/database/ffldb/export_test.go index fe043a95..02db1c61 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/pkt-cash/pktd/database" +import "github.com/pkt-cash/PKT-FullNode/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 20f64466..b55d6032 100644 --- a/database/ffldb/interface_test.go +++ b/database/ffldb/interface_test.go @@ -25,15 +25,15 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) var ( diff --git a/database/ffldb/ldbtreapiter.go b/database/ffldb/ldbtreapiter.go index 82a68afb..87ccbb4a 100644 --- a/database/ffldb/ldbtreapiter.go +++ b/database/ffldb/ldbtreapiter.go @@ -5,9 +5,9 @@ package ffldb import ( - "github.com/pkt-cash/pktd/database/internal/treap" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/database/internal/treap" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // ldbTreapIter wraps a treap iterator to provide the additional functionality diff --git a/database/ffldb/reconcile.go b/database/ffldb/reconcile.go index 7d867c45..f9fe7195 100644 --- a/database/ffldb/reconcile.go +++ b/database/ffldb/reconcile.go @@ -8,10 +8,10 @@ import ( "fmt" "hash/crc32" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" - "github.com/pkt-cash/pktd/database" + "github.com/pkt-cash/PKT-FullNode/database" ) // The serialized write cursor location format is: diff --git a/database/ffldb/test_test.go b/database/ffldb/test_test.go index 51316f76..560f26f2 100644 --- a/database/ffldb/test_test.go +++ b/database/ffldb/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/database/ffldb/whitebox_test.go b/database/ffldb/whitebox_test.go index 7878407b..f0fe3fd5 100644 --- a/database/ffldb/whitebox_test.go +++ b/database/ffldb/whitebox_test.go @@ -17,15 +17,15 @@ import ( "path/filepath" "testing" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/wire/protocol" - "github.com/pkt-cash/pktd/goleveldb/leveldb" - ldberrors "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb" + ldberrors "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) var ( diff --git a/database/interface.go b/database/interface.go index 596da8c2..9a5fb607 100644 --- a/database/interface.go +++ b/database/interface.go @@ -8,9 +8,9 @@ package database import ( - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // Cursor represents a cursor over key/value pairs and nested buckets of a diff --git a/database/test_test.go b/database/test_test.go index 098b30ee..9ac2f3c0 100644 --- a/database/test_test.go +++ b/database/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/go.mod b/go.mod index 8708d85c..e398c06b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pkt-cash/pktd +module github.com/pkt-cash/PKT-FullNode go 1.14 diff --git a/goleveldb/leveldb/async_iterator.go b/goleveldb/leveldb/async_iterator.go index 693ff91d..4187face 100644 --- a/goleveldb/leveldb/async_iterator.go +++ b/goleveldb/leveldb/async_iterator.go @@ -9,7 +9,7 @@ package leveldb import ( "encoding/binary" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" ) // asyncIterator wraps the iterator. It uses a background goroutine to perform raw iteration. diff --git a/goleveldb/leveldb/async_writer.go b/goleveldb/leveldb/async_writer.go index 33f32a2d..eac97558 100644 --- a/goleveldb/leveldb/async_writer.go +++ b/goleveldb/leveldb/async_writer.go @@ -9,7 +9,7 @@ package leveldb import ( "sync/atomic" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) // asyncWriter wraps storage.Writer. It uses a background goroutine to perform real write op. diff --git a/goleveldb/leveldb/batch.go b/goleveldb/leveldb/batch.go index c005fb48..35f5913e 100644 --- a/goleveldb/leveldb/batch.go +++ b/goleveldb/leveldb/batch.go @@ -11,9 +11,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/memdb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/memdb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) // ErrBatchCorrupted records reason of batch corruption. This error will be diff --git a/goleveldb/leveldb/batch_test.go b/goleveldb/leveldb/batch_test.go index 286b8227..c175e98f 100644 --- a/goleveldb/leveldb/batch_test.go +++ b/goleveldb/leveldb/batch_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2012, Suryandaru Triandana @@ -14,7 +15,7 @@ import ( "testing" "testing/quick" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestBatchHeader(t *testing.T) { diff --git a/goleveldb/leveldb/bench_test.go b/goleveldb/leveldb/bench_test.go index 1a58fa61..b436e35f 100644 --- a/goleveldb/leveldb/bench_test.go +++ b/goleveldb/leveldb/bench_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2012, Suryandaru Triandana @@ -18,9 +19,9 @@ import ( "sync/atomic" "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) func randomString(r *rand.Rand, n int) []byte { diff --git a/goleveldb/leveldb/cache/cache.go b/goleveldb/leveldb/cache/cache.go index dc080b8c..2e979eef 100644 --- a/goleveldb/leveldb/cache/cache.go +++ b/goleveldb/leveldb/cache/cache.go @@ -12,7 +12,7 @@ import ( "sync/atomic" "unsafe" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // Cacher provides interface to implements a caching functionality. diff --git a/goleveldb/leveldb/comparer.go b/goleveldb/leveldb/comparer.go index 41885a88..fb413971 100644 --- a/goleveldb/leveldb/comparer.go +++ b/goleveldb/leveldb/comparer.go @@ -7,7 +7,7 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" ) type iComparer struct { diff --git a/goleveldb/leveldb/corrupt_test.go b/goleveldb/leveldb/corrupt_test.go index 7aeef134..04fe3e8e 100644 --- a/goleveldb/leveldb/corrupt_test.go +++ b/goleveldb/leveldb/corrupt_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2013, Suryandaru Triandana @@ -16,9 +17,9 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) const ctValSize = 1000 diff --git a/goleveldb/leveldb/db.go b/goleveldb/leveldb/db.go index b555ee90..a04db8d2 100644 --- a/goleveldb/leveldb/db.go +++ b/goleveldb/leveldb/db.go @@ -17,14 +17,14 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/journal" - "github.com/pkt-cash/pktd/goleveldb/leveldb/memdb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/table" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/journal" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/memdb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/table" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // DB is a LevelDB database. diff --git a/goleveldb/leveldb/db_compaction.go b/goleveldb/leveldb/db_compaction.go index 903161a1..125eab79 100644 --- a/goleveldb/leveldb/db_compaction.go +++ b/goleveldb/leveldb/db_compaction.go @@ -11,9 +11,9 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) var ( diff --git a/goleveldb/leveldb/db_iter.go b/goleveldb/leveldb/db_iter.go index 0a1a15ad..39293397 100644 --- a/goleveldb/leveldb/db_iter.go +++ b/goleveldb/leveldb/db_iter.go @@ -12,9 +12,9 @@ import ( "sync" "sync/atomic" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type memdbReleaser struct { diff --git a/goleveldb/leveldb/db_snapshot.go b/goleveldb/leveldb/db_snapshot.go index c9f988ba..18b6e16b 100644 --- a/goleveldb/leveldb/db_snapshot.go +++ b/goleveldb/leveldb/db_snapshot.go @@ -13,9 +13,9 @@ import ( "sync" "sync/atomic" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type snapshotElement struct { diff --git a/goleveldb/leveldb/db_state.go b/goleveldb/leveldb/db_state.go index 997ef67f..d882f823 100644 --- a/goleveldb/leveldb/db_state.go +++ b/goleveldb/leveldb/db_state.go @@ -11,9 +11,9 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/journal" - "github.com/pkt-cash/pktd/goleveldb/leveldb/memdb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/journal" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/memdb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) var ( diff --git a/goleveldb/leveldb/db_test.go b/goleveldb/leveldb/db_test.go index 3e4bf561..55cd4f66 100644 --- a/goleveldb/leveldb/db_test.go +++ b/goleveldb/leveldb/db_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2012, Suryandaru Triandana @@ -27,14 +28,14 @@ import ( "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func tkey(i int) []byte { diff --git a/goleveldb/leveldb/db_transaction.go b/goleveldb/leveldb/db_transaction.go index 13dd1735..32ef0c4a 100644 --- a/goleveldb/leveldb/db_transaction.go +++ b/goleveldb/leveldb/db_transaction.go @@ -11,9 +11,9 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) var errTransactionDone = errors.New("leveldb: transaction already closed") diff --git a/goleveldb/leveldb/db_util.go b/goleveldb/leveldb/db_util.go index 3043aede..30aa0cf4 100644 --- a/goleveldb/leveldb/db_util.go +++ b/goleveldb/leveldb/db_util.go @@ -7,11 +7,11 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // Reader is the interface that wraps basic Get and NewIterator methods. diff --git a/goleveldb/leveldb/db_write.go b/goleveldb/leveldb/db_write.go index aad7559c..3cc70aa8 100644 --- a/goleveldb/leveldb/db_write.go +++ b/goleveldb/leveldb/db_write.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/memdb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/memdb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func (db *DB) writeJournal(batches []*Batch, seq uint64, sync bool) error { diff --git a/goleveldb/leveldb/errors.go b/goleveldb/leveldb/errors.go index 83be8277..e833fb1f 100644 --- a/goleveldb/leveldb/errors.go +++ b/goleveldb/leveldb/errors.go @@ -7,7 +7,7 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" ) // Common errors. diff --git a/goleveldb/leveldb/errors/errors.go b/goleveldb/leveldb/errors/errors.go index 15bed497..32c1f5f2 100644 --- a/goleveldb/leveldb/errors/errors.go +++ b/goleveldb/leveldb/errors/errors.go @@ -11,8 +11,8 @@ import ( "errors" "fmt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // Common errors. diff --git a/goleveldb/leveldb/external_test.go b/goleveldb/leveldb/external_test.go index 8e3814ed..201bf934 100644 --- a/goleveldb/leveldb/external_test.go +++ b/goleveldb/leveldb/external_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2014, Suryandaru Triandana @@ -12,8 +13,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) var _ = testutil.Defer(func() { diff --git a/goleveldb/leveldb/filter.go b/goleveldb/leveldb/filter.go index 7a4f1f6a..7b38af8a 100644 --- a/goleveldb/leveldb/filter.go +++ b/goleveldb/leveldb/filter.go @@ -7,7 +7,7 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" ) type iFilter struct { diff --git a/goleveldb/leveldb/filter/bloom.go b/goleveldb/leveldb/filter/bloom.go index 82d3b762..2d39b2bc 100644 --- a/goleveldb/leveldb/filter/bloom.go +++ b/goleveldb/leveldb/filter/bloom.go @@ -7,7 +7,7 @@ package filter import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func bloomHash(key []byte) uint32 { diff --git a/goleveldb/leveldb/filter/bloom_test.go b/goleveldb/leveldb/filter/bloom_test.go index a9f0793a..d9be0263 100644 --- a/goleveldb/leveldb/filter/bloom_test.go +++ b/goleveldb/leveldb/filter/bloom_test.go @@ -8,7 +8,7 @@ package filter import ( "encoding/binary" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" "testing" ) diff --git a/goleveldb/leveldb/iterator/array_iter.go b/goleveldb/leveldb/iterator/array_iter.go index 425208b7..36804368 100644 --- a/goleveldb/leveldb/iterator/array_iter.go +++ b/goleveldb/leveldb/iterator/array_iter.go @@ -7,7 +7,7 @@ package iterator import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // BasicArray is the interface that wraps basic Len and Search method. diff --git a/goleveldb/leveldb/iterator/array_iter_test.go b/goleveldb/leveldb/iterator/array_iter_test.go index a22d8796..c5db0b2e 100644 --- a/goleveldb/leveldb/iterator/array_iter_test.go +++ b/goleveldb/leveldb/iterator/array_iter_test.go @@ -9,8 +9,8 @@ package iterator_test import ( . "github.com/onsi/ginkgo" - . "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + . "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) var _ = testutil.Defer(func() { diff --git a/goleveldb/leveldb/iterator/indexed_iter.go b/goleveldb/leveldb/iterator/indexed_iter.go index faeca630..fd41f2ae 100644 --- a/goleveldb/leveldb/iterator/indexed_iter.go +++ b/goleveldb/leveldb/iterator/indexed_iter.go @@ -7,8 +7,8 @@ package iterator import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // IteratorIndexer is the interface that wraps CommonIterator and basic Get diff --git a/goleveldb/leveldb/iterator/indexed_iter_test.go b/goleveldb/leveldb/iterator/indexed_iter_test.go index 34f93c9f..1df4f817 100644 --- a/goleveldb/leveldb/iterator/indexed_iter_test.go +++ b/goleveldb/leveldb/iterator/indexed_iter_test.go @@ -11,9 +11,9 @@ import ( . "github.com/onsi/ginkgo" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - . "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + . "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) type keyValue struct { diff --git a/goleveldb/leveldb/iterator/iter.go b/goleveldb/leveldb/iterator/iter.go index a357cf0a..162c084d 100644 --- a/goleveldb/leveldb/iterator/iter.go +++ b/goleveldb/leveldb/iterator/iter.go @@ -11,7 +11,7 @@ package iterator import ( "errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) var ( diff --git a/goleveldb/leveldb/iterator/iter_suite_test.go b/goleveldb/leveldb/iterator/iter_suite_test.go index 97c1a89b..22ba768d 100644 --- a/goleveldb/leveldb/iterator/iter_suite_test.go +++ b/goleveldb/leveldb/iterator/iter_suite_test.go @@ -3,7 +3,7 @@ package iterator_test import ( "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestIterator(t *testing.T) { diff --git a/goleveldb/leveldb/iterator/merged_iter.go b/goleveldb/leveldb/iterator/merged_iter.go index ad0ae548..5c21e499 100644 --- a/goleveldb/leveldb/iterator/merged_iter.go +++ b/goleveldb/leveldb/iterator/merged_iter.go @@ -7,9 +7,9 @@ package iterator import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type dir int diff --git a/goleveldb/leveldb/iterator/merged_iter_test.go b/goleveldb/leveldb/iterator/merged_iter_test.go index 5646b49e..52cc7fd5 100644 --- a/goleveldb/leveldb/iterator/merged_iter_test.go +++ b/goleveldb/leveldb/iterator/merged_iter_test.go @@ -10,9 +10,9 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - . "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + . "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) var _ = testutil.Defer(func() { diff --git a/goleveldb/leveldb/journal/journal.go b/goleveldb/leveldb/journal/journal.go index daeebc8d..e83043b6 100644 --- a/goleveldb/leveldb/journal/journal.go +++ b/goleveldb/leveldb/journal/journal.go @@ -82,9 +82,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // These constants are part of the wire format and should not be changed. diff --git a/goleveldb/leveldb/key.go b/goleveldb/leveldb/key.go index da032136..35b937f6 100644 --- a/goleveldb/leveldb/key.go +++ b/goleveldb/leveldb/key.go @@ -10,8 +10,8 @@ import ( "encoding/binary" "fmt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) // ErrInternalKeyCorrupted records internal key corruption. diff --git a/goleveldb/leveldb/key_test.go b/goleveldb/leveldb/key_test.go index 0e6ac90c..b3cdb7a9 100644 --- a/goleveldb/leveldb/key_test.go +++ b/goleveldb/leveldb/key_test.go @@ -10,7 +10,7 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" ) var defaultIComparer = &iComparer{comparer.DefaultComparer} diff --git a/goleveldb/leveldb/leveldb_suite_test.go b/goleveldb/leveldb/leveldb_suite_test.go index 44eee777..2b6e7a91 100644 --- a/goleveldb/leveldb/leveldb_suite_test.go +++ b/goleveldb/leveldb/leveldb_suite_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests package leveldb @@ -5,7 +6,7 @@ package leveldb import ( "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestLevelDB(t *testing.T) { diff --git a/goleveldb/leveldb/memdb/bench_test.go b/goleveldb/leveldb/memdb/bench_test.go index be51cbdf..f1b5f571 100644 --- a/goleveldb/leveldb/memdb/bench_test.go +++ b/goleveldb/leveldb/memdb/bench_test.go @@ -11,7 +11,7 @@ import ( "math/rand" "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" ) func BenchmarkPut(b *testing.B) { diff --git a/goleveldb/leveldb/memdb/memdb.go b/goleveldb/leveldb/memdb/memdb.go index 2bc94974..d85549ff 100644 --- a/goleveldb/leveldb/memdb/memdb.go +++ b/goleveldb/leveldb/memdb/memdb.go @@ -11,10 +11,10 @@ import ( "math/rand" "sync" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // Common errors. diff --git a/goleveldb/leveldb/memdb/memdb_suite_test.go b/goleveldb/leveldb/memdb/memdb_suite_test.go index 901649d2..6e096356 100644 --- a/goleveldb/leveldb/memdb/memdb_suite_test.go +++ b/goleveldb/leveldb/memdb/memdb_suite_test.go @@ -3,7 +3,7 @@ package memdb import ( "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestMemDB(t *testing.T) { diff --git a/goleveldb/leveldb/memdb/memdb_test.go b/goleveldb/leveldb/memdb/memdb_test.go index f6345e8d..8a455d85 100644 --- a/goleveldb/leveldb/memdb/memdb_test.go +++ b/goleveldb/leveldb/memdb/memdb_test.go @@ -10,10 +10,10 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func (p *DB) TestFindLT(key []byte) (rkey, value []byte, err error) { diff --git a/goleveldb/leveldb/opt/options.go b/goleveldb/leveldb/opt/options.go index 5c24c3a0..bd9cfed5 100644 --- a/goleveldb/leveldb/opt/options.go +++ b/goleveldb/leveldb/opt/options.go @@ -10,9 +10,9 @@ package opt import ( "math" - "github.com/pkt-cash/pktd/goleveldb/leveldb/cache" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/cache" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" ) const ( diff --git a/goleveldb/leveldb/options.go b/goleveldb/leveldb/options.go index bacbcb4c..964b1a15 100644 --- a/goleveldb/leveldb/options.go +++ b/goleveldb/leveldb/options.go @@ -7,8 +7,8 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" ) func dupOptions(o *opt.Options) *opt.Options { diff --git a/goleveldb/leveldb/session.go b/goleveldb/leveldb/session.go index 4e521666..a21848ba 100644 --- a/goleveldb/leveldb/session.go +++ b/goleveldb/leveldb/session.go @@ -12,10 +12,10 @@ import ( "os" "sync" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/journal" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/journal" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) // ErrManifestCorrupted records manifest corruption. This error will be diff --git a/goleveldb/leveldb/session_compaction.go b/goleveldb/leveldb/session_compaction.go index e420375c..ccfc4ef5 100644 --- a/goleveldb/leveldb/session_compaction.go +++ b/goleveldb/leveldb/session_compaction.go @@ -10,9 +10,9 @@ import ( "sort" "sync/atomic" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/memdb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/memdb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" ) const ( @@ -48,7 +48,7 @@ func (s *session) flushMemdb(rec *sessionRecord, mdb *memdb.DB, maxLevel int) (i // key-space is strictly incrementing it will not overlaps with // higher level, thus maximum possible level is always picked, while // overlapping deletion marker pushed into lower level. - // See: https://github.com/pkt-cash/pktd/goleveldb/issues/127. + // See: https://github.com/pkt-cash/PKT-FullNode/goleveldb/issues/127. flushLevel := s.pickMemdbLevel(t.imin.ukey(), t.imax.ukey(), maxLevel) rec.addTableFile(flushLevel, t) diff --git a/goleveldb/leveldb/session_record.go b/goleveldb/leveldb/session_record.go index b0830a4c..43383e0f 100644 --- a/goleveldb/leveldb/session_record.go +++ b/goleveldb/leveldb/session_record.go @@ -12,8 +12,8 @@ import ( "io" "strings" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) type byteReader interface { diff --git a/goleveldb/leveldb/session_util.go b/goleveldb/leveldb/session_util.go index ff083574..a3dc4d1a 100644 --- a/goleveldb/leveldb/session_util.go +++ b/goleveldb/leveldb/session_util.go @@ -11,8 +11,8 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb/journal" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/journal" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) // Logging. diff --git a/goleveldb/leveldb/storage.go b/goleveldb/leveldb/storage.go index 943c01af..3f4c95c1 100644 --- a/goleveldb/leveldb/storage.go +++ b/goleveldb/leveldb/storage.go @@ -1,7 +1,7 @@ package leveldb import ( - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" "sync/atomic" ) diff --git a/goleveldb/leveldb/table.go b/goleveldb/leveldb/table.go index d35aec4e..2b2f6ec4 100644 --- a/goleveldb/leveldb/table.go +++ b/goleveldb/leveldb/table.go @@ -11,12 +11,12 @@ import ( "sort" "sync/atomic" - "github.com/pkt-cash/pktd/goleveldb/leveldb/cache" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/table" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/cache" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/table" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // tFile holds basic information about a table. diff --git a/goleveldb/leveldb/table/block_test.go b/goleveldb/leveldb/table/block_test.go index 35bb581b..8c0d0b7f 100644 --- a/goleveldb/leveldb/table/block_test.go +++ b/goleveldb/leveldb/table/block_test.go @@ -13,10 +13,10 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type blockTesting struct { diff --git a/goleveldb/leveldb/table/reader.go b/goleveldb/leveldb/table/reader.go index bfae9791..176d3789 100644 --- a/goleveldb/leveldb/table/reader.go +++ b/goleveldb/leveldb/table/reader.go @@ -16,14 +16,14 @@ import ( "github.com/golang/snappy" - "github.com/pkt-cash/pktd/goleveldb/leveldb/cache" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/cache" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) // Reader errors. diff --git a/goleveldb/leveldb/table/table_suite_test.go b/goleveldb/leveldb/table/table_suite_test.go index 75d35c5e..efa9a1e2 100644 --- a/goleveldb/leveldb/table/table_suite_test.go +++ b/goleveldb/leveldb/table/table_suite_test.go @@ -3,7 +3,7 @@ package table import ( "testing" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestTable(t *testing.T) { diff --git a/goleveldb/leveldb/table/table_test.go b/goleveldb/leveldb/table/table_test.go index ddb97629..63d21f46 100644 --- a/goleveldb/leveldb/table/table_test.go +++ b/goleveldb/leveldb/table/table_test.go @@ -12,11 +12,11 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type tableWrapper struct { diff --git a/goleveldb/leveldb/table/writer.go b/goleveldb/leveldb/table/writer.go index a956c8aa..c95c7f2e 100644 --- a/goleveldb/leveldb/table/writer.go +++ b/goleveldb/leveldb/table/writer.go @@ -14,10 +14,10 @@ import ( "github.com/golang/snappy" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func sharedPrefixLen(a, b []byte) int { diff --git a/goleveldb/leveldb/table_test.go b/goleveldb/leveldb/table_test.go index 57bb3442..d043ba86 100644 --- a/goleveldb/leveldb/table_test.go +++ b/goleveldb/leveldb/table_test.go @@ -13,8 +13,8 @@ import ( "testing" "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) func TestGetOverlaps(t *testing.T) { diff --git a/goleveldb/leveldb/testutil/db.go b/goleveldb/leveldb/testutil/db.go index e37e3128..3dc4a8ef 100644 --- a/goleveldb/leveldb/testutil/db.go +++ b/goleveldb/leveldb/testutil/db.go @@ -12,9 +12,9 @@ import ( . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type DB interface{} diff --git a/goleveldb/leveldb/testutil/iter.go b/goleveldb/leveldb/testutil/iter.go index 4a6bd987..83926a1e 100644 --- a/goleveldb/leveldb/testutil/iter.go +++ b/goleveldb/leveldb/testutil/iter.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" ) type IterAct int diff --git a/goleveldb/leveldb/testutil/kv.go b/goleveldb/leveldb/testutil/kv.go index f1c748d0..807a93b3 100644 --- a/goleveldb/leveldb/testutil/kv.go +++ b/goleveldb/leveldb/testutil/kv.go @@ -12,7 +12,7 @@ import ( "sort" "strings" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type KeyValueEntry struct { diff --git a/goleveldb/leveldb/testutil/kvtest.go b/goleveldb/leveldb/testutil/kvtest.go index 558c4277..09af3a9c 100644 --- a/goleveldb/leveldb/testutil/kvtest.go +++ b/goleveldb/leveldb/testutil/kvtest.go @@ -13,8 +13,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) func TestFind(db Find, kv KeyValue) { diff --git a/goleveldb/leveldb/testutil/storage.go b/goleveldb/leveldb/testutil/storage.go index 0e9754e1..ecd9abc5 100644 --- a/goleveldb/leveldb/testutil/storage.go +++ b/goleveldb/leveldb/testutil/storage.go @@ -19,7 +19,7 @@ import ( . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) var ( diff --git a/goleveldb/leveldb/testutil/util.go b/goleveldb/leveldb/testutil/util.go index ef9af905..f3b3c7d5 100644 --- a/goleveldb/leveldb/testutil/util.go +++ b/goleveldb/leveldb/testutil/util.go @@ -15,7 +15,7 @@ import ( "github.com/onsi/ginkgo/config" - "github.com/pkt-cash/pktd/goleveldb/leveldb/comparer" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/comparer" ) var ( diff --git a/goleveldb/leveldb/testutil_test.go b/goleveldb/leveldb/testutil_test.go index 5b46fe0f..f6c26f45 100644 --- a/goleveldb/leveldb/testutil_test.go +++ b/goleveldb/leveldb/testutil_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests // Copyright (c) 2014, Suryandaru Triandana @@ -11,10 +12,10 @@ package leveldb import ( . "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type testingDB struct { diff --git a/goleveldb/leveldb/util.go b/goleveldb/leveldb/util.go index 3d663b77..679d8264 100644 --- a/goleveldb/leveldb/util.go +++ b/goleveldb/leveldb/util.go @@ -10,7 +10,7 @@ import ( "fmt" "sort" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) func shorten(str string) string { diff --git a/goleveldb/leveldb/version.go b/goleveldb/leveldb/version.go index 1404186d..75414d11 100644 --- a/goleveldb/leveldb/version.go +++ b/goleveldb/leveldb/version.go @@ -12,9 +12,9 @@ import ( "time" "unsafe" - "github.com/pkt-cash/pktd/goleveldb/leveldb/iterator" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/iterator" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) type tSet struct { diff --git a/goleveldb/leveldb/version_test.go b/goleveldb/leveldb/version_test.go index b5a71224..52272329 100644 --- a/goleveldb/leveldb/version_test.go +++ b/goleveldb/leveldb/version_test.go @@ -1,3 +1,4 @@ +//go:build goleveldbtests // +build goleveldbtests package leveldb @@ -11,8 +12,8 @@ import ( "time" "github.com/onsi/gomega" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/testutil" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/testutil" ) type testFileRec struct { diff --git a/goleveldb/manualtest/dbstress/key.go b/goleveldb/manualtest/dbstress/key.go index b94a6d98..b159df18 100644 --- a/goleveldb/manualtest/dbstress/key.go +++ b/goleveldb/manualtest/dbstress/key.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "fmt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) type ErrIkeyCorrupted struct { diff --git a/goleveldb/manualtest/dbstress/main.go b/goleveldb/manualtest/dbstress/main.go index f3d68f90..d66f5620 100644 --- a/goleveldb/manualtest/dbstress/main.go +++ b/goleveldb/manualtest/dbstress/main.go @@ -19,13 +19,13 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/goleveldb/leveldb" - "github.com/pkt-cash/pktd/goleveldb/leveldb/errors" - "github.com/pkt-cash/pktd/goleveldb/leveldb/filter" - "github.com/pkt-cash/pktd/goleveldb/leveldb/opt" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" - "github.com/pkt-cash/pktd/goleveldb/leveldb/table" - "github.com/pkt-cash/pktd/goleveldb/leveldb/util" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/errors" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/filter" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/opt" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/table" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/util" ) var ( @@ -301,8 +301,8 @@ func (s *latencyStats) add(x *latencyStats) { func main() { flag.Parse() - var src cryptoSource - rnd := rand.New(src) + var src cryptoSource + rnd := rand.New(src) if enableBufferPool { bpool = util.NewBufferPool(opt.DefaultBlockSize + 128) @@ -639,13 +639,13 @@ type cryptoSource struct{} func (s cryptoSource) Seed(seed int64) {} func (s cryptoSource) Int63() int64 { - return int64(s.Uint64() & ^uint64(1<<63)) + return int64(s.Uint64() & ^uint64(1<<63)) } func (s cryptoSource) Uint64() (v uint64) { - err := binary.Read(crand.Reader, binary.BigEndian, &v) - if err != nil { - log.Fatal(err) - } - return v + err := binary.Read(crand.Reader, binary.BigEndian, &v) + if err != nil { + log.Fatal(err) + } + return v } diff --git a/goleveldb/manualtest/filelock/main.go b/goleveldb/manualtest/filelock/main.go index 0ba233d8..fc501fac 100644 --- a/goleveldb/manualtest/filelock/main.go +++ b/goleveldb/manualtest/filelock/main.go @@ -9,7 +9,7 @@ import ( "os/exec" "path/filepath" - "github.com/pkt-cash/pktd/goleveldb/leveldb/storage" + "github.com/pkt-cash/PKT-FullNode/goleveldb/leveldb/storage" ) var ( diff --git a/integration/README.md b/integration/README.md index 095de25b..5df00db9 100644 --- a/integration/README.md +++ b/integration/README.md @@ -4,7 +4,7 @@ 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/pkt-cash/pktd/tree/master/integration/rpctest) +[rpctest](https://github.com/pkt-cash/PKT-FullNode/tree/master/integration/rpctest) package to programmatically drive nodes via RPC. ## License diff --git a/integration/bip0009_test.go b/integration/bip0009_test.go index 692cf279..5c2b8b82 100644 --- a/integration/bip0009_test.go +++ b/integration/bip0009_test.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // This file is ignored during the regular tests due to the following build tag. +//go:build rpctest // +build rpctest package integration @@ -12,12 +13,12 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/integration/rpctest" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/integration/rpctest" ) const ( diff --git a/integration/csv_fork_test.go b/integration/csv_fork_test.go index 15952afd..46ca9e9a 100644 --- a/integration/csv_fork_test.go +++ b/integration/csv_fork_test.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // This file is ignored during the regular tests due to the following build tag. +//go:build rpctest // +build rpctest package integration @@ -14,21 +15,21 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire/constants" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/integration/rpctest" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/integration/rpctest" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/integration/rpcserver_test.go b/integration/rpcserver_test.go index a8a3b914..987fcf2b 100644 --- a/integration/rpcserver_test.go +++ b/integration/rpcserver_test.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // This file is ignored during the regular tests due to the following build tag. +//go:build rpctest // +build rpctest package integration @@ -14,10 +15,10 @@ import ( "runtime/debug" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/integration/rpctest" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/integration/rpctest" ) func testGetBestBlock(r *rpctest.Harness, t *testing.T) { diff --git a/integration/rpctest/blockgen.go b/integration/rpctest/blockgen.go index d9efa560..01bf572e 100644 --- a/integration/rpctest/blockgen.go +++ b/integration/rpctest/blockgen.go @@ -10,16 +10,16 @@ import ( "runtime" "time" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/genesis" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/genesis" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) // solveBlock attempts to find a nonce which makes the passed block header hash diff --git a/integration/rpctest/btcd.go b/integration/rpctest/btcd.go index f76303a8..8b1c318a 100644 --- a/integration/rpctest/btcd.go +++ b/integration/rpctest/btcd.go @@ -10,7 +10,7 @@ import ( "runtime" "sync" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) var ( @@ -50,7 +50,7 @@ func pktdExecutablePath() (string, er.R) { outputPath += ".exe" } cmd := exec.Command( - "go", "build", "-o", outputPath, "github.com/pkt-cash/pktd", + "go", "build", "-o", outputPath, "github.com/pkt-cash/PKT-FullNode", ) err = er.E(cmd.Run()) if err != nil { diff --git a/integration/rpctest/memwallet.go b/integration/rpctest/memwallet.go index 0ca7c011..0c7355dd 100644 --- a/integration/rpctest/memwallet.go +++ b/integration/rpctest/memwallet.go @@ -9,18 +9,18 @@ import ( "encoding/binary" "sync" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/hdkeychain" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/rpcclient" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/hdkeychain" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/rpcclient" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) var ( diff --git a/integration/rpctest/node.go b/integration/rpctest/node.go index bdcc55c0..eafa3d4d 100644 --- a/integration/rpctest/node.go +++ b/integration/rpctest/node.go @@ -14,10 +14,10 @@ import ( "runtime" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcutil" - rpc "github.com/pkt-cash/pktd/rpcclient" + "github.com/pkt-cash/PKT-FullNode/btcutil" + rpc "github.com/pkt-cash/PKT-FullNode/rpcclient" ) // nodeConfig contains all the args, and data required to launch a pktd process diff --git a/integration/rpctest/rpc_harness.go b/integration/rpctest/rpc_harness.go index bf5b2298..4124b2f0 100644 --- a/integration/rpctest/rpc_harness.go +++ b/integration/rpctest/rpc_harness.go @@ -15,13 +15,13 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/rpcclient" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/rpcclient" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) const ( diff --git a/integration/rpctest/rpc_harness_test.go b/integration/rpctest/rpc_harness_test.go index e0194411..7878be8d 100644 --- a/integration/rpctest/rpc_harness_test.go +++ b/integration/rpctest/rpc_harness_test.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // This file is ignored during the regular tests due to the following build tag. +//go:build rpctest // +build rpctest package rpctest @@ -13,14 +14,14 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) func testSendOutputs(r *Harness, t *testing.T) { diff --git a/integration/rpctest/utils.go b/integration/rpctest/utils.go index 7e62befb..5920f71d 100644 --- a/integration/rpctest/utils.go +++ b/integration/rpctest/utils.go @@ -8,10 +8,10 @@ import ( "reflect" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/rpcclient" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/rpcclient" ) // JoinType is an enum representing a particular type of "node join". A node diff --git a/lightning-onion/batch.go b/lightning-onion/batch.go index 75d72dd7..d0c9c839 100644 --- a/lightning-onion/batch.go +++ b/lightning-onion/batch.go @@ -1,7 +1,7 @@ package sphinx import ( - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // ErrAlreadyCommitted signals that an entry could not be added to the diff --git a/lightning-onion/bench_test.go b/lightning-onion/bench_test.go index 93bd292b..99e48c23 100644 --- a/lightning-onion/bench_test.go +++ b/lightning-onion/bench_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) var ( diff --git a/lightning-onion/cmd/main.go b/lightning-onion/cmd/main.go index 525f164e..abc7450f 100644 --- a/lightning-onion/cmd/main.go +++ b/lightning-onion/cmd/main.go @@ -9,11 +9,11 @@ import ( "os" "strings" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" - sphinx "github.com/pkt-cash/pktd/lightning-onion" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + sphinx "github.com/pkt-cash/PKT-FullNode/lightning-onion" ) type OnionHopSpec struct { diff --git a/lightning-onion/crypto.go b/lightning-onion/crypto.go index 6e0a18d4..db523374 100644 --- a/lightning-onion/crypto.go +++ b/lightning-onion/crypto.go @@ -6,8 +6,8 @@ import ( "crypto/sha256" "github.com/aead/chacha20" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) const ( diff --git a/lightning-onion/error.go b/lightning-onion/error.go index b1028db7..d6e0c630 100644 --- a/lightning-onion/error.go +++ b/lightning-onion/error.go @@ -1,7 +1,7 @@ package sphinx import ( - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) var ( diff --git a/lightning-onion/hornet.go b/lightning-onion/hornet.go index 12a34f8b..8642f494 100644 --- a/lightning-onion/hornet.go +++ b/lightning-onion/hornet.go @@ -1,7 +1,7 @@ package sphinx import ( - "github.com/pkt-cash/pktd/btcec" + "github.com/pkt-cash/PKT-FullNode/btcec" "golang.org/x/crypto/ripemd160" ) diff --git a/lightning-onion/obfuscation.go b/lightning-onion/obfuscation.go index 4b2ef50b..bb91bc7e 100644 --- a/lightning-onion/obfuscation.go +++ b/lightning-onion/obfuscation.go @@ -3,8 +3,8 @@ package sphinx import ( "io" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // OnionErrorEncrypter is a struct that's used to implement onion error diff --git a/lightning-onion/obfuscation_test.go b/lightning-onion/obfuscation_test.go index 7a9e51fe..7e47bf46 100644 --- a/lightning-onion/obfuscation_test.go +++ b/lightning-onion/obfuscation_test.go @@ -6,9 +6,9 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" ) // TestOnionFailure checks the ability of sender of payment to decode the diff --git a/lightning-onion/packetfiller.go b/lightning-onion/packetfiller.go index 3a6551b5..b76e5cbf 100644 --- a/lightning-onion/packetfiller.go +++ b/lightning-onion/packetfiller.go @@ -4,8 +4,8 @@ import ( "crypto/rand" "github.com/aead/chacha20" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // PacketFiller is a function type to be specified by the caller to provide a diff --git a/lightning-onion/path.go b/lightning-onion/path.go index 55dc70d1..a5aa502a 100644 --- a/lightning-onion/path.go +++ b/lightning-onion/path.go @@ -6,9 +6,9 @@ import ( "encoding/binary" "io" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // HopData is the information destined for individual hops. It is a fixed size diff --git a/lightning-onion/replay_set.go b/lightning-onion/replay_set.go index 11856228..c39707c4 100644 --- a/lightning-onion/replay_set.go +++ b/lightning-onion/replay_set.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" ) // ReplaySet is a data structure used to efficiently record the occurrence of diff --git a/lightning-onion/replaylog.go b/lightning-onion/replaylog.go index ce831bf0..ff8a5120 100644 --- a/lightning-onion/replaylog.go +++ b/lightning-onion/replaylog.go @@ -3,7 +3,7 @@ package sphinx import ( "crypto/sha256" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) const ( diff --git a/lightning-onion/sphinx.go b/lightning-onion/sphinx.go index bce0540b..71acf744 100644 --- a/lightning-onion/sphinx.go +++ b/lightning-onion/sphinx.go @@ -8,10 +8,10 @@ import ( "io" "math/big" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) const ( diff --git a/lightning-onion/sphinx_test.go b/lightning-onion/sphinx_test.go index f34b729b..75baf7e8 100644 --- a/lightning-onion/sphinx_test.go +++ b/lightning-onion/sphinx_test.go @@ -10,10 +10,10 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/chaincfg" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/chaincfg" ) // BOLT 4 Test Vectors diff --git a/limits/limits_plan9.go b/limits/limits_plan9.go index 8aa47cbb..ba9c1870 100644 --- a/limits/limits_plan9.go +++ b/limits/limits_plan9.go @@ -4,7 +4,7 @@ package limits -import "github.com/pkt-cash/pktd/btcutil/er" +import "github.com/pkt-cash/PKT-FullNode/btcutil/er" // SetLimits is a no-op on Plan 9 due to the lack of process accounting. func SetLimits() er.R { diff --git a/limits/limits_unix.go b/limits/limits_unix.go index 434a9f9d..89ab6cb4 100644 --- a/limits/limits_unix.go +++ b/limits/limits_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build !windows && !plan9 // +build !windows,!plan9 package limits @@ -9,7 +10,7 @@ package limits import ( "syscall" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) const ( diff --git a/limits/limits_windows.go b/limits/limits_windows.go index d9de11b0..15a423b2 100644 --- a/limits/limits_windows.go +++ b/limits/limits_windows.go @@ -4,7 +4,7 @@ package limits -import "github.com/pkt-cash/pktd/btcutil/er" +import "github.com/pkt-cash/PKT-FullNode/btcutil/er" // SetLimits is a no-op on Windows since it's not required there. func SetLimits() er.R { diff --git a/mempool/error.go b/mempool/error.go index bf5e8c9c..b122404c 100644 --- a/mempool/error.go +++ b/mempool/error.go @@ -7,9 +7,9 @@ package mempool import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" ) // txRuleError creates an underlying TxRuleError with the given a set of diff --git a/mempool/estimatefee.go b/mempool/estimatefee.go index 3fa657d1..4d3efa60 100644 --- a/mempool/estimatefee.go +++ b/mempool/estimatefee.go @@ -14,14 +14,14 @@ import ( "strings" "sync" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/mining" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/mining" ) // TODO incorporate Alex Morcos' modifications to Gavin's initial model diff --git a/mempool/estimatefee_test.go b/mempool/estimatefee_test.go index c01c9886..a2795888 100644 --- a/mempool/estimatefee_test.go +++ b/mempool/estimatefee_test.go @@ -9,12 +9,12 @@ import ( "math/rand" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/wire" ) // newTestFeeEstimator creates a feeEstimator with some different parameters diff --git a/mempool/mempool.go b/mempool/mempool.go index 59c4bdb2..16eb3b47 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -12,19 +12,19 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/blockchain/indexers" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/blockchain/indexers" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/mempool/mempool_test.go b/mempool/mempool_test.go index 9dd9a337..3658254e 100644 --- a/mempool/mempool_test.go +++ b/mempool/mempool_test.go @@ -11,19 +11,19 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) // fakeChain is used by the pool harness to provide generated test utxos and diff --git a/mempool/policy.go b/mempool/policy.go index 7a8cc828..1c14583f 100644 --- a/mempool/policy.go +++ b/mempool/policy.go @@ -9,12 +9,12 @@ import ( "math/big" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/mempool/policy_test.go b/mempool/policy_test.go index ca134ad9..b78f22fb 100644 --- a/mempool/policy_test.go +++ b/mempool/policy_test.go @@ -9,17 +9,17 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" ) // TestCalcMinRequiredTxRelayFee tests the calcMinRequiredTxRelayFee API. diff --git a/mempool/test_test.go b/mempool/test_test.go index 1e669935..59cd49d7 100644 --- a/mempool/test_test.go +++ b/mempool/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/mining/cpuminer/cpuminer.go b/mining/cpuminer/cpuminer.go index 8cc759f0..673c92f1 100644 --- a/mining/cpuminer/cpuminer.go +++ b/mining/cpuminer/cpuminer.go @@ -12,15 +12,15 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" ) const ( diff --git a/mining/mining.go b/mining/mining.go index 37e00ec8..ff0ad50c 100644 --- a/mining/mining.go +++ b/mining/mining.go @@ -10,20 +10,20 @@ import ( "container/heap" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire/constants" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/blockchain/packetcrypt" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/mining/mining_test.go b/mining/mining_test.go index 272c5946..400d6361 100644 --- a/mining/mining_test.go +++ b/mining/mining_test.go @@ -9,7 +9,7 @@ import ( "math/rand" "testing" - "github.com/pkt-cash/pktd/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil" ) // TestTxFeePrioHeap ensures the priority queue for transaction fees and diff --git a/mining/policy.go b/mining/policy.go index c4973e5e..b1c113a5 100644 --- a/mining/policy.go +++ b/mining/policy.go @@ -5,9 +5,9 @@ package mining import ( - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/mining/policy_test.go b/mining/policy_test.go index e1671add..ce8430f0 100644 --- a/mining/policy_test.go +++ b/mining/policy_test.go @@ -8,11 +8,11 @@ import ( "encoding/hex" "testing" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) // newHashFromStr converts the passed big-endian hex string into a diff --git a/mining/test_test.go b/mining/test_test.go index 08b5a1ae..d2c29027 100644 --- a/mining/test_test.go +++ b/mining/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/netsync/blocklogger.go b/netsync/blocklogger.go index 454461ce..f50ecf7f 100644 --- a/netsync/blocklogger.go +++ b/netsync/blocklogger.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) // blockProgressLogger provides periodic logging for other services in order diff --git a/netsync/interface.go b/netsync/interface.go index 47a7965d..e7c5b3d6 100644 --- a/netsync/interface.go +++ b/netsync/interface.go @@ -5,13 +5,13 @@ package netsync import ( - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/mempool" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/mempool" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/wire" ) // PeerNotifier exposes methods to notify peers of status changes to diff --git a/netsync/manager.go b/netsync/manager.go index ba5a6246..de9caa99 100644 --- a/netsync/manager.go +++ b/netsync/manager.go @@ -12,19 +12,19 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" - "github.com/pkt-cash/pktd/wire/ruleerror" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/mempool" - peerpkg "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/mempool" + peerpkg "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/params.go b/params.go index 40ea592e..91fd243d 100644 --- a/params.go +++ b/params.go @@ -6,8 +6,8 @@ package main import ( - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // activeNetParams is a pointer to the parameters specific to the diff --git a/peer/doc.go b/peer/doc.go index 5a0eb85d..f5dbdea6 100644 --- a/peer/doc.go +++ b/peer/doc.go @@ -144,6 +144,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://godoc.org/github.com/pkt-cash/pktd/wire#hdr-Bitcoin_Improvement_Proposals) +(https://godoc.org/github.com/pkt-cash/PKT-FullNode/wire#hdr-Bitcoin_Improvement_Proposals) */ package peer diff --git a/peer/example_test.go b/peer/example_test.go index 5a44bf81..04d6cb22 100644 --- a/peer/example_test.go +++ b/peer/example_test.go @@ -10,10 +10,10 @@ import ( "net" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/wire" ) // mockRemotePeer creates a basic inbound peer listening on the simnet port for diff --git a/peer/log.go b/peer/log.go index bf525fc9..ab77b387 100644 --- a/peer/log.go +++ b/peer/log.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/peer/mruinvmap.go b/peer/mruinvmap.go index c4df5083..ba89d382 100644 --- a/peer/mruinvmap.go +++ b/peer/mruinvmap.go @@ -10,7 +10,7 @@ import ( "fmt" "sync" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // mruInventoryMap provides a concurrency safe map that is limited to a maximum diff --git a/peer/mruinvmap_test.go b/peer/mruinvmap_test.go index 6a590c49..f1859f67 100644 --- a/peer/mruinvmap_test.go +++ b/peer/mruinvmap_test.go @@ -9,8 +9,8 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestMruInventoryMap ensures the MruInventoryMap behaves as expected including diff --git a/peer/peer.go b/peer/peer.go index 5e8cffea..f134d664 100644 --- a/peer/peer.go +++ b/peer/peer.go @@ -18,15 +18,15 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/peer/peer_test.go b/peer/peer_test.go index 637efc75..478e448d 100644 --- a/peer/peer_test.go +++ b/peer/peer_test.go @@ -11,13 +11,13 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // conn mocks a network connection by implementing the net.Conn interface. It @@ -42,8 +42,8 @@ func (c conn) LocalAddr() net.Addr { // Remote returns the remote address for the connection. func (c conn) RemoteAddr() net.Addr { - return &addr { - c.rnet, c.raddr, + return &addr{ + c.rnet, c.raddr, } } diff --git a/peer/test_test.go b/peer/test_test.go index 9e6b67c2..67876abd 100644 --- a/peer/test_test.go +++ b/peer/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/pktconfig/util.go b/pktconfig/util.go index 45058bec..1aff579a 100644 --- a/pktconfig/util.go +++ b/pktconfig/util.go @@ -14,7 +14,7 @@ import ( flags "github.com/jessevdk/go-flags" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // CreateDefaultConfigFile copies the file sample-pktd.conf to the given destination path, diff --git a/pktconv.sh b/pktconv.sh index 0ec7e672..0b1dc72b 100755 --- a/pktconv.sh +++ b/pktconv.sh @@ -30,14 +30,14 @@ RUN=$SH imports() { $FIND ./ -name '*.go' | while read x; do - echo $SED -i -e \'s@"github.com/btcsuite/btcd@"github.com/pkt-cash/pktd@g\' $x; + echo $SED -i -e \'s@"github.com/btcsuite/btcd@"github.com/pkt-cash/PKT-FullNode@g\' $x; echo $SED -i -e \'s@"github.com/btcsuite/btcutil@"github.com/pkt-cash/btcutil@g\' $x; echo $SED -i -e \'s@"github.com/btcsuite/btcwallet@"github.com/pkt-cash/pktwallet@g\' $x; done | $RUN } rimports() { $FIND ./ -name '*.go' | while read x; do - echo $SED -i -e \'s@"github.com/pkt-cash/pktd@"github.com/btcsuite/btcd@g\' $x; + echo $SED -i -e \'s@"github.com/pkt-cash/PKT-FullNode@"github.com/btcsuite/btcd@g\' $x; echo $SED -i -e \'s@"github.com/pkt-cash/btcutil@"github.com/btcsuite/btcutil@g\' $x; echo $SED -i -e \'s@"github.com/pkt-cash/pktwallet@"github.com/btcsuite/btcwallet@g\' $x; done | $RUN diff --git a/pktd.go b/pktd.go index 5b5f89a7..b000c910 100644 --- a/pktd.go +++ b/pktd.go @@ -17,12 +17,12 @@ import ( "time" "github.com/arl/statsviz" - "github.com/pkt-cash/pktd/blockchain/indexers" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/limits" - "github.com/pkt-cash/pktd/pktconfig/version" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/blockchain/indexers" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/limits" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) const ( diff --git a/pktlog/log/log.go b/pktlog/log/log.go index b96acc8b..8deaf8b2 100644 --- a/pktlog/log/log.go +++ b/pktlog/log/log.go @@ -43,8 +43,8 @@ import ( "sync" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" ) // Flags to modify Backend's behavior. diff --git a/rpcadapters.go b/rpcadapters.go index 348b4958..daf6a53d 100644 --- a/rpcadapters.go +++ b/rpcadapters.go @@ -7,15 +7,15 @@ package main import ( "sync/atomic" - "github.com/pkt-cash/pktd/btcutil/er" - - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/mempool" - "github.com/pkt-cash/pktd/netsync" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/mempool" + "github.com/pkt-cash/PKT-FullNode/netsync" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/wire" ) // rpcPeer provides a peer for use with the RPC server and implements the diff --git a/rpcclient/chain.go b/rpcclient/chain.go index d011ab85..1a1bc4bc 100644 --- a/rpcclient/chain.go +++ b/rpcclient/chain.go @@ -10,11 +10,11 @@ import ( "encoding/hex" jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // FutureGetBlockResult is a future promise to deliver the result of a diff --git a/rpcclient/doc.go b/rpcclient/doc.go index 2eaefaac..79a95a80 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 pktd/bitcoin core compatible Bitcoin JSON-RPC -API. This client has been tested with pktd (https://github.com/pkt-cash/pktd), +API. This client has been tested with pktd (https://github.com/pkt-cash/PKT-FullNode), pktwallet (https://github.com/pkt-cash/pktwallet), and bitcoin core (https://github.com/bitcoin). diff --git a/rpcclient/extensions.go b/rpcclient/extensions.go index 8fe016f9..3fccfb2c 100644 --- a/rpcclient/extensions.go +++ b/rpcclient/extensions.go @@ -8,10 +8,10 @@ package rpcclient import ( "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // FutureGetBestBlockResult is a future promise to deliver the result of a diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index 89e2abd5..24c7eee1 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -22,12 +22,12 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" "github.com/gorilla/websocket" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) var Err er.ErrorType = er.NewErrorType("rpcclient.Err") diff --git a/rpcclient/mining.go b/rpcclient/mining.go index c411787c..9db153b0 100644 --- a/rpcclient/mining.go +++ b/rpcclient/mining.go @@ -8,11 +8,11 @@ import ( "encoding/hex" "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // FutureGenerateResult is a future promise to deliver the result of a diff --git a/rpcclient/net.go b/rpcclient/net.go index c4043dc9..650b3492 100644 --- a/rpcclient/net.go +++ b/rpcclient/net.go @@ -7,9 +7,9 @@ package rpcclient import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // AddNodeCommand enumerates the available commands that the AddNode function diff --git a/rpcclient/notify.go b/rpcclient/notify.go index 5085ad52..6fd93fd4 100644 --- a/rpcclient/notify.go +++ b/rpcclient/notify.go @@ -13,14 +13,14 @@ import ( jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) // notificationState is used to track the current state of successfully diff --git a/rpcclient/rawrequest.go b/rpcclient/rawrequest.go index b4f807ed..244d60af 100644 --- a/rpcclient/rawrequest.go +++ b/rpcclient/rawrequest.go @@ -7,9 +7,9 @@ package rpcclient import ( "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/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 0ea8492f..19ade577 100644 --- a/rpcclient/rawtransactions.go +++ b/rpcclient/rawtransactions.go @@ -9,12 +9,12 @@ import ( "encoding/hex" jsoniter "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // FutureGetRawTransactionResult is a future promise to deliver the result of a diff --git a/rpcclient/wallet.go b/rpcclient/wallet.go index cfe259e9..b85c82c6 100644 --- a/rpcclient/wallet.go +++ b/rpcclient/wallet.go @@ -8,9 +8,9 @@ package rpcclient import ( "github.com/json-iterator/go" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // *********************** diff --git a/rpcserver.go b/rpcserver.go index 414bf7ab..ba793b3f 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -29,30 +29,30 @@ import ( jsoniter "github.com/json-iterator/go" "github.com/gorilla/websocket" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/blockchain/indexers" - "github.com/pkt-cash/pktd/blockchain/packetcrypt" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/difficulty" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/mempool" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/mining/cpuminer" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/pktconfig/version" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" - "github.com/pkt-cash/pktd/wire/protocol" - "github.com/pkt-cash/pktd/wire/ruleerror" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/blockchain/indexers" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/difficulty" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/mempool" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/mining/cpuminer" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/ruleerror" ) // API version constants diff --git a/rpcserverhelp.go b/rpcserverhelp.go index f9cafc89..1507b401 100644 --- a/rpcserverhelp.go +++ b/rpcserverhelp.go @@ -11,9 +11,9 @@ import ( "strings" "sync" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcjson" ) // helpDescsEnUS defines the English descriptions used for the help strings. @@ -161,9 +161,9 @@ var helpDescsEnUS = map[string]string{ "getnetworkinforesult-incrementalfee": "Minimum fee increment for BIP 125 replacement", "getnetworkinforesult-localaddresses": "TODO Always empty for now", - "getnetworkinfonetworks-reachable": "If the network is externally reachable", - "getnetworkinfonetworks-limited": "True if this is the only allowed network", - "getnetworkinfonetworks-name": "IPv4 / IPv6", + "getnetworkinfonetworks-reachable": "If the network is externally reachable", + "getnetworkinfonetworks-limited": "True if this is the only allowed network", + "getnetworkinfonetworks-name": "IPv4 / IPv6", // GenerateCmd help "generate--synopsis": "Generates a set number of blocks (simnet or regtest only) and returns a JSON\n" + diff --git a/rpcwebsocket.go b/rpcwebsocket.go index 7113fc6b..0fead00f 100644 --- a/rpcwebsocket.go +++ b/rpcwebsocket.go @@ -21,16 +21,16 @@ import ( jsoniter "github.com/json-iterator/go" "github.com/gorilla/websocket" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/btcjson" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/btcjson" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/server.go b/server.go index b1edc755..62e17825 100644 --- a/server.go +++ b/server.go @@ -22,26 +22,26 @@ import ( "sync/atomic" "time" - "github.com/pkt-cash/pktd/addrmgr" - "github.com/pkt-cash/pktd/blockchain" - "github.com/pkt-cash/pktd/blockchain/indexers" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/bloom" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/connmgr" - "github.com/pkt-cash/pktd/database" - "github.com/pkt-cash/pktd/mempool" - "github.com/pkt-cash/pktd/mining" - "github.com/pkt-cash/pktd/mining/cpuminer" - "github.com/pkt-cash/pktd/netsync" - "github.com/pkt-cash/pktd/peer" - "github.com/pkt-cash/pktd/pktconfig/version" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/addrmgr" + "github.com/pkt-cash/PKT-FullNode/blockchain" + "github.com/pkt-cash/PKT-FullNode/blockchain/indexers" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/bloom" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/connmgr" + "github.com/pkt-cash/PKT-FullNode/database" + "github.com/pkt-cash/PKT-FullNode/mempool" + "github.com/pkt-cash/PKT-FullNode/mining" + "github.com/pkt-cash/PKT-FullNode/mining/cpuminer" + "github.com/pkt-cash/PKT-FullNode/netsync" + "github.com/pkt-cash/PKT-FullNode/peer" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) const ( diff --git a/service_windows.go b/service_windows.go index a77f25f2..0f40b83e 100644 --- a/service_windows.go +++ b/service_windows.go @@ -10,8 +10,8 @@ import ( "path/filepath" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktconfig/version" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktconfig/version" "github.com/btcsuite/winsvc/eventlog" "github.com/btcsuite/winsvc/mgr" diff --git a/signal.go b/signal.go index 49672ba3..6519d622 100644 --- a/signal.go +++ b/signal.go @@ -10,7 +10,7 @@ import ( "os/signal" "runtime" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) // shutdownRequestChannel is used to initiate shutdown from one of the diff --git a/txscript/engine.go b/txscript/engine.go index a2143b15..3b4642db 100644 --- a/txscript/engine.go +++ b/txscript/engine.go @@ -11,15 +11,15 @@ import ( "fmt" "math/big" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/txscripterr" - - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" + + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/wire" ) // ScriptFlags is a bitmask defining additional operations or tests that will be diff --git a/txscript/engine_test.go b/txscript/engine_test.go index b201651f..8ec76a39 100644 --- a/txscript/engine_test.go +++ b/txscript/engine_test.go @@ -7,10 +7,10 @@ package txscript import ( "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/txscripterr" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestBadPC sets the pc to a deliberately bad result then confirms that Step() diff --git a/txscript/example_test.go b/txscript/example_test.go index cf339018..c5547ede 100644 --- a/txscript/example_test.go +++ b/txscript/example_test.go @@ -8,17 +8,17 @@ import ( "encoding/hex" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire/constants" - - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript" + "github.com/pkt-cash/PKT-FullNode/wire" ) // This example demonstrates creating a script which pays to a bitcoin address. diff --git a/txscript/hashcache.go b/txscript/hashcache.go index b3dc36da..c6db3fc4 100644 --- a/txscript/hashcache.go +++ b/txscript/hashcache.go @@ -7,8 +7,8 @@ package txscript import ( "sync" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TxSigHashes houses the partial set of sighashes introduced within BIP0143. diff --git a/txscript/hashcache_test.go b/txscript/hashcache_test.go index 582827fd..63829fc8 100644 --- a/txscript/hashcache_test.go +++ b/txscript/hashcache_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // genTestTx creates a random transaction for uses within test cases. diff --git a/txscript/opcode.go b/txscript/opcode.go index a6b57b02..cbde3572 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -12,17 +12,17 @@ import ( "encoding/binary" "fmt" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptnum" - "github.com/pkt-cash/pktd/txscript/txscripterr" - "github.com/pkt-cash/pktd/wire/constants" - - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptnum" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // Conditional execution constants. diff --git a/txscript/opcode_test.go b/txscript/opcode_test.go index 11ba602a..b5fb0e21 100644 --- a/txscript/opcode_test.go +++ b/txscript/opcode_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) // TestOpcodeDisabled tests the opcodeDisabled function manually because all diff --git a/txscript/parsescript/parsescript.go b/txscript/parsescript/parsescript.go index 2ab2a97f..15aeafb7 100644 --- a/txscript/parsescript/parsescript.go +++ b/txscript/parsescript/parsescript.go @@ -3,9 +3,9 @@ package parsescript import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) // opcodeArray holds details about all possible opcodes such as how many bytes diff --git a/txscript/pkscript.go b/txscript/pkscript.go index 8f30664a..7053c795 100644 --- a/txscript/pkscript.go +++ b/txscript/pkscript.go @@ -3,13 +3,13 @@ package txscript import ( "crypto/sha256" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/txscript/pkscript_test.go b/txscript/pkscript_test.go index e0f2602b..734a7e5f 100644 --- a/txscript/pkscript_test.go +++ b/txscript/pkscript_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestParsePkScript ensures that the supported script types can be parsed diff --git a/txscript/reference_test.go b/txscript/reference_test.go index 19ac0fca..a83b49a4 100644 --- a/txscript/reference_test.go +++ b/txscript/reference_test.go @@ -8,25 +8,25 @@ package txscript import ( "bytes" "encoding/hex" - "github.com/json-iterator/go" "fmt" + "github.com/json-iterator/go" "io/ioutil" "strconv" "strings" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/txscript/txscripterr" - "github.com/pkt-cash/pktd/wire/constants" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/wire/constants" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) // scriptTestName returns a descriptive test name for the given reference script diff --git a/txscript/script.go b/txscript/script.go index c440733d..911dba15 100644 --- a/txscript/script.go +++ b/txscript/script.go @@ -9,13 +9,13 @@ import ( "bytes" "encoding/binary" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire" ) // isSmallInt returns whether or not the opcode is considered a small integer, diff --git a/txscript/script_test.go b/txscript/script_test.go index 87ee9ca1..e3d13607 100644 --- a/txscript/script_test.go +++ b/txscript/script_test.go @@ -10,14 +10,14 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/wire" ) // TestParseOpcode tests for opcode parsing with bad data templates. diff --git a/txscript/scriptbuilder/scriptbuilder.go b/txscript/scriptbuilder/scriptbuilder.go index 5ea36d89..e1600cef 100644 --- a/txscript/scriptbuilder/scriptbuilder.go +++ b/txscript/scriptbuilder/scriptbuilder.go @@ -8,11 +8,11 @@ import ( "encoding/binary" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/scriptnum" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptnum" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) const ( diff --git a/txscript/scriptbuilder/scriptbuilder_test.go b/txscript/scriptbuilder/scriptbuilder_test.go index efb2be28..6b39c946 100644 --- a/txscript/scriptbuilder/scriptbuilder_test.go +++ b/txscript/scriptbuilder/scriptbuilder_test.go @@ -8,8 +8,8 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" ) // TestScriptBuilderAddOp tests that pushing opcodes to a script via the diff --git a/txscript/scriptnum/scriptnum.go b/txscript/scriptnum/scriptnum.go index c8182287..22c6c6a0 100644 --- a/txscript/scriptnum/scriptnum.go +++ b/txscript/scriptnum/scriptnum.go @@ -7,8 +7,8 @@ package scriptnum import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) const ( diff --git a/txscript/scriptnum_test.go b/txscript/scriptnum_test.go index dd8b1618..9ba73cce 100644 --- a/txscript/scriptnum_test.go +++ b/txscript/scriptnum_test.go @@ -9,9 +9,9 @@ import ( "encoding/hex" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/scriptnum" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptnum" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) // hexToBytes converts the passed hex string into bytes and will panic if there diff --git a/txscript/sigcache.go b/txscript/sigcache.go index 5e9442f4..50c5a967 100644 --- a/txscript/sigcache.go +++ b/txscript/sigcache.go @@ -7,8 +7,8 @@ package txscript import ( "sync" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/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 cc170435..2b68cd71 100644 --- a/txscript/sigcache_test.go +++ b/txscript/sigcache_test.go @@ -8,10 +8,10 @@ import ( "crypto/rand" "testing" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/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 d35299f1..463d2b16 100644 --- a/txscript/sign.go +++ b/txscript/sign.go @@ -5,16 +5,16 @@ package txscript import ( - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) // RawTxInWitnessSignature returns the serialized ECDA signature for the input diff --git a/txscript/sign_test.go b/txscript/sign_test.go index 0d38a926..16e2f8eb 100644 --- a/txscript/sign_test.go +++ b/txscript/sign_test.go @@ -9,15 +9,15 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/btcec" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/params" - "github.com/pkt-cash/pktd/wire" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcec" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/params" + "github.com/pkt-cash/PKT-FullNode/wire" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) type addressToKey struct { diff --git a/txscript/stack.go b/txscript/stack.go index 9de002f9..9f4df55d 100644 --- a/txscript/stack.go +++ b/txscript/stack.go @@ -8,9 +8,9 @@ import ( "encoding/hex" "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/scriptnum" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptnum" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) // asBool gets the boolean value of the byte array. diff --git a/txscript/stack_test.go b/txscript/stack_test.go index cd6c839c..2224909d 100644 --- a/txscript/stack_test.go +++ b/txscript/stack_test.go @@ -9,9 +9,9 @@ import ( "fmt" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/scriptnum" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptnum" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" ) // tstCheckScriptError ensures the type of the two passed errors are of the diff --git a/txscript/standard.go b/txscript/standard.go index f0cdedba..aa676319 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -8,16 +8,16 @@ package txscript import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/btcutil/util" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/txscript/txscripterr" - - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/util" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" + + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) const ( diff --git a/txscript/standard_test.go b/txscript/standard_test.go index 2e04da3f..733a1af5 100644 --- a/txscript/standard_test.go +++ b/txscript/standard_test.go @@ -10,13 +10,13 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/txscripterr" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/txscripterr" - "github.com/pkt-cash/pktd/btcutil" - "github.com/pkt-cash/pktd/chaincfg" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil" + "github.com/pkt-cash/PKT-FullNode/chaincfg" + "github.com/pkt-cash/PKT-FullNode/wire" ) // mustParseShortForm parses the passed short form script and returns the diff --git a/txscript/test_test.go b/txscript/test_test.go index 3702a14f..3c91b50d 100644 --- a/txscript/test_test.go +++ b/txscript/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) { diff --git a/txscript/txscripterr/error.go b/txscript/txscripterr/error.go index b759c6fe..fc052e34 100644 --- a/txscript/txscripterr/error.go +++ b/txscript/txscripterr/error.go @@ -5,7 +5,7 @@ package txscripterr import ( - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // Err identifies a kind of script error. diff --git a/upgrade.go b/upgrade.go index 52483d21..164a01f1 100644 --- a/upgrade.go +++ b/upgrade.go @@ -9,8 +9,8 @@ import ( "os" "path/filepath" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/pktlog/log" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/pktlog/log" ) // dirEmpty returns whether or not the specified directory path is empty. diff --git a/upnp.go b/upnp.go index ace665ef..d3d3593e 100644 --- a/upnp.go +++ b/upnp.go @@ -42,7 +42,7 @@ import ( "strings" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" "github.com/sethgrid/pester" ) diff --git a/wire/bench_test.go b/wire/bench_test.go index fb3561cd..ca7ead4c 100644 --- a/wire/bench_test.go +++ b/wire/bench_test.go @@ -13,8 +13,8 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // genesisCoinbaseTx is the coinbase transaction for the genesis blocks for diff --git a/wire/blockheader.go b/wire/blockheader.go index fa1321ab..a0f50cb8 100644 --- a/wire/blockheader.go +++ b/wire/blockheader.go @@ -9,9 +9,9 @@ import ( "io" "time" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MaxBlockHeaderPayload is the maximum number of bytes a block header can be. diff --git a/wire/blockheader_test.go b/wire/blockheader_test.go index 3c6645ac..25de52d1 100644 --- a/wire/blockheader_test.go +++ b/wire/blockheader_test.go @@ -11,7 +11,7 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestBlockHeader tests the BlockHeader API. diff --git a/wire/common.go b/wire/common.go index de3af4c3..b8686e33 100644 --- a/wire/common.go +++ b/wire/common.go @@ -12,10 +12,10 @@ import ( "math" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( diff --git a/wire/common_test.go b/wire/common_test.go index e6f5dd42..1551663b 100644 --- a/wire/common_test.go +++ b/wire/common_test.go @@ -12,9 +12,9 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // mainNetGenesisHash is the hash of the first block in the block chain for the @@ -692,4 +692,3 @@ func TestVarBytesOverflowErrors(t *testing.T) { } } - diff --git a/wire/error.go b/wire/error.go index 09024b44..771726e4 100644 --- a/wire/error.go +++ b/wire/error.go @@ -7,7 +7,7 @@ package wire import ( "fmt" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MessageError describes an issue with a message. diff --git a/wire/fakemessage_test.go b/wire/fakemessage_test.go index babff588..b267fc66 100644 --- a/wire/fakemessage_test.go +++ b/wire/fakemessage_test.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // fakeMessage implements the Message interface and is used to force encode diff --git a/wire/invvect.go b/wire/invvect.go index 8cc8fe6c..4d5165d7 100644 --- a/wire/invvect.go +++ b/wire/invvect.go @@ -8,9 +8,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( diff --git a/wire/invvect_test.go b/wire/invvect_test.go index bd92f99b..4cd23f6c 100644 --- a/wire/invvect_test.go +++ b/wire/invvect_test.go @@ -10,8 +10,8 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestInvVectStringer tests the stringized output for inventory vector types. diff --git a/wire/message.go b/wire/message.go index 4835490e..90b5a04f 100644 --- a/wire/message.go +++ b/wire/message.go @@ -10,10 +10,10 @@ import ( "io" "unicode/utf8" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MessageHeaderSize is the number of bytes in a bitcoin message header. diff --git a/wire/message_test.go b/wire/message_test.go index e4b1bc0d..23a46b00 100644 --- a/wire/message_test.go +++ b/wire/message_test.go @@ -13,11 +13,11 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // makeHeader is a convenience function to make a message header in the form of diff --git a/wire/msgaddr.go b/wire/msgaddr.go index 87d889bc..2ce95dbe 100644 --- a/wire/msgaddr.go +++ b/wire/msgaddr.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MaxAddrPerMsg is the maximum number of addresses that can be in a single diff --git a/wire/msgaddr_test.go b/wire/msgaddr_test.go index 62d8f1fe..b2d7d313 100644 --- a/wire/msgaddr_test.go +++ b/wire/msgaddr_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgblock.go b/wire/msgblock.go index ee610e7c..36b1a80a 100644 --- a/wire/msgblock.go +++ b/wire/msgblock.go @@ -10,10 +10,10 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) // defaultTransactionAlloc is the default size used for the backing array diff --git a/wire/msgblock_test.go b/wire/msgblock_test.go index bfd8d5b1..00797730 100644 --- a/wire/msgblock_test.go +++ b/wire/msgblock_test.go @@ -11,11 +11,11 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestBlock tests the MsgBlock API. diff --git a/wire/msgcfcheckpt.go b/wire/msgcfcheckpt.go index 3216b6bb..4292a3ab 100644 --- a/wire/msgcfcheckpt.go +++ b/wire/msgcfcheckpt.go @@ -9,9 +9,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( diff --git a/wire/msgcfheaders.go b/wire/msgcfheaders.go index e01aa1b1..cd1988eb 100644 --- a/wire/msgcfheaders.go +++ b/wire/msgcfheaders.go @@ -8,9 +8,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) const ( diff --git a/wire/msgcfilter.go b/wire/msgcfilter.go index c072d181..d1e25ba4 100644 --- a/wire/msgcfilter.go +++ b/wire/msgcfilter.go @@ -8,9 +8,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // FilterType is used to represent a filter type. diff --git a/wire/msgfeefilter.go b/wire/msgfeefilter.go index 71a66a49..27c4617a 100644 --- a/wire/msgfeefilter.go +++ b/wire/msgfeefilter.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgFeeFilter implements the Message interface and represents a bitcoin diff --git a/wire/msgfeefilter_test.go b/wire/msgfeefilter_test.go index b47b8605..060ab4be 100644 --- a/wire/msgfeefilter_test.go +++ b/wire/msgfeefilter_test.go @@ -11,8 +11,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgfilteradd.go b/wire/msgfilteradd.go index 4c9c313a..d0b0d11a 100644 --- a/wire/msgfilteradd.go +++ b/wire/msgfilteradd.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) const ( diff --git a/wire/msgfilteradd_test.go b/wire/msgfilteradd_test.go index 311419f1..3cd5725a 100644 --- a/wire/msgfilteradd_test.go +++ b/wire/msgfilteradd_test.go @@ -9,8 +9,8 @@ import ( "io" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestFilterAddLatest tests the MsgFilterAdd API against the latest protocol diff --git a/wire/msgfilterclear.go b/wire/msgfilterclear.go index 182ff998..a2641398 100644 --- a/wire/msgfilterclear.go +++ b/wire/msgfilterclear.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgFilterClear implements the Message interface and represents a bitcoin diff --git a/wire/msgfilterclear_test.go b/wire/msgfilterclear_test.go index bf7b885f..b0e5ede5 100644 --- a/wire/msgfilterclear_test.go +++ b/wire/msgfilterclear_test.go @@ -9,8 +9,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgfilterload.go b/wire/msgfilterload.go index a33f7bb6..e293d145 100644 --- a/wire/msgfilterload.go +++ b/wire/msgfilterload.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // BloomUpdateType specifies how the filter is updated when a match is found diff --git a/wire/msgfilterload_test.go b/wire/msgfilterload_test.go index e8206b6e..0f29435c 100644 --- a/wire/msgfilterload_test.go +++ b/wire/msgfilterload_test.go @@ -9,8 +9,8 @@ import ( "io" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestFilterCLearLatest tests the MsgFilterLoad API against the latest protocol diff --git a/wire/msggetaddr.go b/wire/msggetaddr.go index ea9e6707..1cce6a25 100644 --- a/wire/msggetaddr.go +++ b/wire/msggetaddr.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MsgGetAddr implements the Message interface and represents a bitcoin diff --git a/wire/msggetaddr_test.go b/wire/msggetaddr_test.go index a256f7c4..e813de87 100644 --- a/wire/msggetaddr_test.go +++ b/wire/msggetaddr_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestGetAddr tests the MsgGetAddr API. diff --git a/wire/msggetblocks.go b/wire/msggetblocks.go index ac3e18c5..83fdd26d 100644 --- a/wire/msggetblocks.go +++ b/wire/msggetblocks.go @@ -8,10 +8,10 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MaxBlockLocatorsPerMsg is the maximum number of block locator hashes allowed diff --git a/wire/msggetblocks_test.go b/wire/msggetblocks_test.go index d99f7bca..e46bee63 100644 --- a/wire/msggetblocks_test.go +++ b/wire/msggetblocks_test.go @@ -10,11 +10,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestGetBlocks tests the MsgGetBlocks API. diff --git a/wire/msggetcfcheckpt.go b/wire/msggetcfcheckpt.go index 0967a0c1..af3df055 100644 --- a/wire/msggetcfcheckpt.go +++ b/wire/msggetcfcheckpt.go @@ -7,9 +7,9 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MsgGetCFCheckpt is a request for filter headers at evenly spaced intervals diff --git a/wire/msggetcfheaders.go b/wire/msggetcfheaders.go index e7a70171..311569d5 100644 --- a/wire/msggetcfheaders.go +++ b/wire/msggetcfheaders.go @@ -7,9 +7,9 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MsgGetCFHeaders is a message similar to MsgGetHeaders, but for committed diff --git a/wire/msggetcfilters.go b/wire/msggetcfilters.go index 8ab035f7..07af5cec 100644 --- a/wire/msggetcfilters.go +++ b/wire/msggetcfilters.go @@ -7,9 +7,9 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MaxGetCFiltersReqRange the maximum number of filters that may be requested in diff --git a/wire/msggetdata.go b/wire/msggetdata.go index f6284e1b..ced8198c 100644 --- a/wire/msggetdata.go +++ b/wire/msggetdata.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MsgGetData implements the Message interface and represents a bitcoin diff --git a/wire/msggetdata_test.go b/wire/msggetdata_test.go index 35d48abf..4309bb84 100644 --- a/wire/msggetdata_test.go +++ b/wire/msggetdata_test.go @@ -10,11 +10,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestGetData tests the MsgGetData API. diff --git a/wire/msggetheaders.go b/wire/msggetheaders.go index 3ffafff7..5d707b57 100644 --- a/wire/msggetheaders.go +++ b/wire/msggetheaders.go @@ -8,9 +8,9 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // MsgGetHeaders implements the Message interface and represents a bitcoin diff --git a/wire/msggetheaders_test.go b/wire/msggetheaders_test.go index 24e8ad05..79679c27 100644 --- a/wire/msggetheaders_test.go +++ b/wire/msggetheaders_test.go @@ -10,11 +10,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestGetHeaders tests the MsgGetHeader API. diff --git a/wire/msgheaders.go b/wire/msgheaders.go index 7dcb9312..cc778d78 100644 --- a/wire/msgheaders.go +++ b/wire/msgheaders.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MaxBlockHeadersPerMsg is the maximum number of block headers that can be in diff --git a/wire/msgheaders_test.go b/wire/msgheaders_test.go index 03eb65a8..39556760 100644 --- a/wire/msgheaders_test.go +++ b/wire/msgheaders_test.go @@ -10,8 +10,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msginv.go b/wire/msginv.go index 602f92e2..69427df7 100644 --- a/wire/msginv.go +++ b/wire/msginv.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // defaultInvListAlloc is the default size used for the backing array for an diff --git a/wire/msginv_test.go b/wire/msginv_test.go index fc772de7..047e3723 100644 --- a/wire/msginv_test.go +++ b/wire/msginv_test.go @@ -10,11 +10,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestInv tests the MsgInv API. diff --git a/wire/msgmempool.go b/wire/msgmempool.go index 46ad0c88..42cca72b 100644 --- a/wire/msgmempool.go +++ b/wire/msgmempool.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgMemPool implements the Message interface and represents a bitcoin mempool diff --git a/wire/msgmempool_test.go b/wire/msgmempool_test.go index 478d3501..356432c7 100644 --- a/wire/msgmempool_test.go +++ b/wire/msgmempool_test.go @@ -8,7 +8,7 @@ import ( "bytes" "testing" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) func TestMemPool(t *testing.T) { diff --git a/wire/msgmerkleblock.go b/wire/msgmerkleblock.go index 5cdd93cd..38f824f9 100644 --- a/wire/msgmerkleblock.go +++ b/wire/msgmerkleblock.go @@ -8,10 +8,10 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // maxFlagsPerMerkleBlock is the maximum number of flag bytes that could diff --git a/wire/msgmerkleblock_test.go b/wire/msgmerkleblock_test.go index 45a374f4..396dc37f 100644 --- a/wire/msgmerkleblock_test.go +++ b/wire/msgmerkleblock_test.go @@ -12,11 +12,11 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestMerkleBlock tests the MsgMerkleBlock API. diff --git a/wire/msgnotfound.go b/wire/msgnotfound.go index 6e2774b2..478fe458 100644 --- a/wire/msgnotfound.go +++ b/wire/msgnotfound.go @@ -8,7 +8,7 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MsgNotFound defines a bitcoin notfound message which is sent in response to diff --git a/wire/msgnotfound_test.go b/wire/msgnotfound_test.go index 4ce256cb..a179b708 100644 --- a/wire/msgnotfound_test.go +++ b/wire/msgnotfound_test.go @@ -10,11 +10,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestNotFound tests the MsgNotFound API. diff --git a/wire/msgping.go b/wire/msgping.go index 184c33d9..96781d44 100644 --- a/wire/msgping.go +++ b/wire/msgping.go @@ -7,8 +7,8 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgPing implements the Message interface and represents a bitcoin ping diff --git a/wire/msgping_test.go b/wire/msgping_test.go index 86973af9..883daba4 100644 --- a/wire/msgping_test.go +++ b/wire/msgping_test.go @@ -10,8 +10,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgpong.go b/wire/msgpong.go index cdd141c9..ce343cc3 100644 --- a/wire/msgpong.go +++ b/wire/msgpong.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgPong implements the Message interface and represents a bitcoin pong diff --git a/wire/msgpong_test.go b/wire/msgpong_test.go index 37a087b5..7cbfbf99 100644 --- a/wire/msgpong_test.go +++ b/wire/msgpong_test.go @@ -10,8 +10,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgreject.go b/wire/msgreject.go index 6173701d..7698e00d 100644 --- a/wire/msgreject.go +++ b/wire/msgreject.go @@ -8,10 +8,10 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // RejectCode represents a numeric value by which a remote peer indicates diff --git a/wire/msgreject_test.go b/wire/msgreject_test.go index ae1616f3..d7de0236 100644 --- a/wire/msgreject_test.go +++ b/wire/msgreject_test.go @@ -10,8 +10,8 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/msgsendheaders.go b/wire/msgsendheaders.go index 889c7754..5dc4ba2c 100644 --- a/wire/msgsendheaders.go +++ b/wire/msgsendheaders.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MsgSendHeaders implements the Message interface and represents a bitcoin diff --git a/wire/msgsendheaders_test.go b/wire/msgsendheaders_test.go index 9c52ca2a..709b73ff 100644 --- a/wire/msgsendheaders_test.go +++ b/wire/msgsendheaders_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestSendHeaders tests the MsgSendHeaders API against the latest protocol diff --git a/wire/msgtx.go b/wire/msgtx.go index f78b402e..8d7b9365 100644 --- a/wire/msgtx.go +++ b/wire/msgtx.go @@ -11,12 +11,12 @@ import ( "io" "strconv" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/chaincfg/chainhash" - "github.com/pkt-cash/pktd/txscript/opcode" - "github.com/pkt-cash/pktd/txscript/parsescript" - "github.com/pkt-cash/pktd/txscript/scriptbuilder" - "github.com/pkt-cash/pktd/wire/constants" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/txscript/opcode" + "github.com/pkt-cash/PKT-FullNode/txscript/parsescript" + "github.com/pkt-cash/PKT-FullNode/txscript/scriptbuilder" + "github.com/pkt-cash/PKT-FullNode/wire/constants" ) const ( diff --git a/wire/msgtx_test.go b/wire/msgtx_test.go index 597d3554..af74673a 100644 --- a/wire/msgtx_test.go +++ b/wire/msgtx_test.go @@ -11,11 +11,11 @@ import ( "reflect" "testing" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/chaincfg/chainhash" + "github.com/pkt-cash/PKT-FullNode/chaincfg/chainhash" ) // TestTx tests the MsgTx API. diff --git a/wire/msgverack.go b/wire/msgverack.go index 94a9c523..43073894 100644 --- a/wire/msgverack.go +++ b/wire/msgverack.go @@ -7,7 +7,7 @@ package wire import ( "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" ) // MsgVerAck defines a bitcoin verack message which is used for a peer to diff --git a/wire/msgverack_test.go b/wire/msgverack_test.go index 0f0701cb..394ee558 100644 --- a/wire/msgverack_test.go +++ b/wire/msgverack_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestVerAck tests the MsgVerAck API. diff --git a/wire/msgversion.go b/wire/msgversion.go index fddb7d4f..0abb2ab0 100644 --- a/wire/msgversion.go +++ b/wire/msgversion.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // MaxUserAgentLen is the maximum allowed length for the user agent field in a diff --git a/wire/msgversion_test.go b/wire/msgversion_test.go index 64219543..d88a0e7e 100644 --- a/wire/msgversion_test.go +++ b/wire/msgversion_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/netaddress.go b/wire/netaddress.go index 130ea567..f3344951 100644 --- a/wire/netaddress.go +++ b/wire/netaddress.go @@ -10,8 +10,8 @@ import ( "net" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // maxNetAddressPayload returns the max payload size for a bitcoin NetAddress diff --git a/wire/netaddress_test.go b/wire/netaddress_test.go index 4a737a15..f407fa96 100644 --- a/wire/netaddress_test.go +++ b/wire/netaddress_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" "github.com/davecgh/go-spew/spew" ) diff --git a/wire/packetcryptann.go b/wire/packetcryptann.go index 9a744556..f33f126c 100644 --- a/wire/packetcryptann.go +++ b/wire/packetcryptann.go @@ -8,9 +8,9 @@ import ( "encoding/binary" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" ) // PacketCryptAnn is the in-memory structure of a PacketCrypt announcement diff --git a/wire/packetcryptproof.go b/wire/packetcryptproof.go index 2888b187..b06170da 100644 --- a/wire/packetcryptproof.go +++ b/wire/packetcryptproof.go @@ -9,9 +9,9 @@ import ( "encoding/binary" "io" - "github.com/pkt-cash/pktd/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" - "github.com/pkt-cash/pktd/blockchain/packetcrypt/pcutil" + "github.com/pkt-cash/PKT-FullNode/blockchain/packetcrypt/pcutil" ) // PcCoinbaseCommitMagic is the first 4 bytes of the commitment diff --git a/wire/protocol/protocol_test.go b/wire/protocol/protocol_test.go index 288ff4f7..691a36eb 100644 --- a/wire/protocol/protocol_test.go +++ b/wire/protocol/protocol_test.go @@ -7,7 +7,7 @@ package protocol_test import ( "testing" - "github.com/pkt-cash/pktd/wire/protocol" + "github.com/pkt-cash/PKT-FullNode/wire/protocol" ) // TestServiceFlagStringer tests the stringized output for service flag types. diff --git a/wire/ruleerror/error.go b/wire/ruleerror/error.go index 7e1bb08f..e5bb43cb 100644 --- a/wire/ruleerror/error.go +++ b/wire/ruleerror/error.go @@ -1,8 +1,8 @@ package ruleerror import ( - "github.com/pkt-cash/pktd/btcutil/er" - "github.com/pkt-cash/pktd/wire" + "github.com/pkt-cash/PKT-FullNode/btcutil/er" + "github.com/pkt-cash/PKT-FullNode/wire" ) // Err identifies a rule violation. It is used to indicate that diff --git a/wire/test_test.go b/wire/test_test.go index bf5bc26c..0b424bd5 100644 --- a/wire/test_test.go +++ b/wire/test_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/pkt-cash/pktd/chaincfg/globalcfg" + "github.com/pkt-cash/PKT-FullNode/chaincfg/globalcfg" ) func TestMain(m *testing.M) {