Skip to content

Commit

Permalink
Update module name
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorchu committed May 10, 2024
1 parent 491681c commit bd29d78
Show file tree
Hide file tree
Showing 340 changed files with 1,412 additions and 883 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG := github.com/ltcsuite/ltcd
PKG := github.com/ltcmweb/ltcd

LINT_PKG := github.com/golangci/golangci-lint/cmd/golangci-lint
GOACC_PKG := github.com/ory/go-acc
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/addrmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"sync/atomic"
"time"

"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/wire"
)

// AddrManager provides a concurrency safe address manager for caching potential
Expand Down
2 changes: 1 addition & 1 deletion addrmgr/addrmanager_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/wire"
)

// randAddr generates a *wire.NetAddressV2 backed by a random IPv4/IPv6
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/addrmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"testing"
"time"

"github.com/ltcsuite/ltcd/addrmgr"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/addrmgr"
"github.com/ltcmweb/ltcd/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/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/wire"
)

func TstKnownAddressIsBad(ka *KnownAddress) bool {
Expand Down
2 changes: 1 addition & 1 deletion addrmgr/knownaddress.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/wire"
)

// 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/ltcsuite/ltcd/addrmgr"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/addrmgr"
"github.com/ltcmweb/ltcd/wire"
)

func TestChance(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion addrmgr/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"net"

"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/wire"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions addrmgr/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/ltcsuite/ltcd/addrmgr"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/addrmgr"
"github.com/ltcmweb/ltcd/wire"
)

// TestIPTypes ensures the various functions which determine the type of an IP
Expand Down
2 changes: 1 addition & 1 deletion blockchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ block chain.
## Installation and Updating

```bash
$ go get -u github.com/ltcsuite/ltcd/blockchain
$ go get -u github.com/ltcmweb/ltcd/blockchain
```

## Litecoin Chain Processing Overview
Expand Down
4 changes: 2 additions & 2 deletions blockchain/accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package blockchain
import (
"fmt"

"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/ltcutil"
)

// maybeAcceptBlock potentially accepts a block into the block chain and, if
Expand Down
4 changes: 2 additions & 2 deletions blockchain/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package blockchain
import (
"testing"

"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/wire"
)

// BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase
Expand Down
8 changes: 4 additions & 4 deletions blockchain/blockindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"sync"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/wire"
)

// blockStatus is a bit field representing the validation state of the block.
Expand Down
12 changes: 6 additions & 6 deletions blockchain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"sync"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/txscript"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions blockchain/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"testing"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/wire"
)

// TestHaveBlock tests the HaveBlock API to ensure proper functionality.
Expand Down
8 changes: 4 additions & 4 deletions blockchain/chainio.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"sync"
"time"

"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions blockchain/chainio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"reflect"
"testing"

"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/wire"
)

// TestErrNotInMainChain ensures the functions related to errNotInMainChain work
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/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/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 @@ -8,10 +8,10 @@ import (
"fmt"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/txscript"
)

// CheckpointConfirmations is the number of blocks before the end of the current
Expand Down
14 changes: 7 additions & 7 deletions blockchain/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import (
"strings"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/database"
_ "github.com/ltcsuite/ltcd/database/ffldb"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/database"
_ "github.com/ltcmweb/ltcd/database/ffldb"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/txscript"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions blockchain/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package blockchain

import (
"github.com/ltcsuite/ltcd/btcec/v2"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcmweb/ltcd/btcec/v2"
"github.com/ltcmweb/ltcd/txscript"
)

// -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion blockchain/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"math/big"
"time"

"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions blockchain/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"os"
"path/filepath"

"github.com/ltcsuite/ltcd/blockchain"
"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/database"
_ "github.com/ltcsuite/ltcd/database/ffldb"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/blockchain"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/database"
_ "github.com/ltcmweb/ltcd/database/ffldb"
"github.com/ltcmweb/ltcd/ltcutil"
)

// This example demonstrates how to create a new chain instance and use
Expand Down
12 changes: 6 additions & 6 deletions blockchain/fullblocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"os"
"path/filepath"

"github.com/ltcsuite/ltcd/blockchain"
"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/database"
_ "github.com/ltcsuite/ltcd/database/ffldb"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/blockchain"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/database"
_ "github.com/ltcmweb/ltcd/database/ffldb"
"github.com/ltcmweb/ltcd/txscript"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion blockchain/fullblocktests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ of blocks that exercise the consensus validation rules.
## Installation and Updating

```bash
$ go get -u github.com/ltcsuite/ltcd/blockchain/fullblocktests
$ go get -u github.com/ltcmweb/ltcd/blockchain/fullblocktests
```

## License
Expand Down
14 changes: 7 additions & 7 deletions blockchain/fullblocktests/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
"runtime"
"time"

"github.com/ltcsuite/ltcd/blockchain"
"github.com/ltcsuite/ltcd/btcec/v2"
"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/blockchain"
"github.com/ltcmweb/ltcd/btcec/v2"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/txscript"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions blockchain/fullblocktests/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"math/big"
"time"

"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/wire"
)

// newHashFromStr converts the passed big-endian hex string into a
Expand Down
2 changes: 1 addition & 1 deletion blockchain/indexers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ via an RPC interface.
## Installation

```bash
$ go get -u github.com/ltcsuite/ltcd/blockchain/indexers
$ go get -u github.com/ltcmweb/ltcd/blockchain/indexers
```

## License
Expand Down
14 changes: 7 additions & 7 deletions blockchain/indexers/addrindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"fmt"
"sync"

"github.com/ltcsuite/ltcd/blockchain"
"github.com/ltcsuite/ltcd/chaincfg"
"github.com/ltcsuite/ltcd/chaincfg/chainhash"
"github.com/ltcsuite/ltcd/database"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcsuite/ltcd/txscript"
"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/blockchain"
"github.com/ltcmweb/ltcd/chaincfg"
"github.com/ltcmweb/ltcd/chaincfg/chainhash"
"github.com/ltcmweb/ltcd/database"
"github.com/ltcmweb/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/txscript"
"github.com/ltcmweb/ltcd/wire"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion blockchain/indexers/addrindex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"testing"

"github.com/ltcsuite/ltcd/wire"
"github.com/ltcmweb/ltcd/wire"
)

// addrIndexBucket provides a mock address index database bucket by implementing
Expand Down
2 changes: 1 addition & 1 deletion blockchain/indexers/blocklogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/btcsuite/btclog"
"github.com/ltcsuite/ltcd/ltcutil"
"github.com/ltcmweb/ltcd/ltcutil"
)

// blockProgressLogger provides periodic logging for other services in order
Expand Down
Loading

0 comments on commit bd29d78

Please sign in to comment.