Skip to content

Commit

Permalink
Rename all imports from pkt-cash/pktd to pkt-cash/PKT-FullNode
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Dec 6, 2023
1 parent 6f980b9 commit a0c5b46
Show file tree
Hide file tree
Showing 440 changed files with 1,577 additions and 1,563 deletions.
2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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`.

Expand All @@ -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

Expand Down
10 changes: 5 additions & 5 deletions addrmgr/addrmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/addrmanager_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions addrmgr/addrmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion addrmgr/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/knownaddress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/knownaddress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package addrmgr
import (
"net"

"github.com/pkt-cash/pktd/wire"
"github.com/pkt-cash/PKT-FullNode/wire"
)

var (
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions addrmgr/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions blockchain/accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion blockchain/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions blockchain/blockindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
22 changes: 11 additions & 11 deletions blockchain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
10 changes: 5 additions & 5 deletions blockchain/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
16 changes: 8 additions & 8 deletions blockchain/chainio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions blockchain/chainio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chainview_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions blockchain/checkpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions blockchain/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions blockchain/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

// -----------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions blockchain/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions blockchain/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion blockchain/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions blockchain/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit a0c5b46

Please sign in to comment.