Skip to content

Commit

Permalink
maybe move repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavenoface committed Nov 11, 2023
1 parent 4893b31 commit 5588efe
Show file tree
Hide file tree
Showing 343 changed files with 1,028 additions and 1,486 deletions.
26 changes: 13 additions & 13 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
for version 3 blocks which are compatible with BIP0066
- Allow getblocktemplate to serve blocks when the current time is
less than the minimum allowed time for a generated block template
(https://github.com/btcsuite/btcd/issues/209)
(https://github.com/peercoin/ppcd/issues/209)
- Crypto changes:
- Optimize scalar multiplication by the base point by using a
pre-computed table which results in approximately a 35% speedup
Expand All @@ -554,29 +554,29 @@ Changes in 0.10.0 (Sun Mar 01 2015)
- Add a new parameter --addrindex which will enable the creation of an
address index which can be queried to determine all transactions which
involve a given address
(https://github.com/btcsuite/btcd/issues/190)
(https://github.com/peercoin/ppcd/issues/190)
- Add a new logging subsystem for address index related operations
- Support new searchrawtransactions RPC
(https://github.com/btcsuite/btcd/issues/185)
(https://github.com/peercoin/ppcd/issues/185)
- RPC changes:
- Require TLS version 1.2 as the minimum version for all TLS connections
- Provide support for disabling TLS when only listening on localhost
(https://github.com/btcsuite/btcd/pull/192)
(https://github.com/peercoin/ppcd/pull/192)
- Modify help output for all commands to provide much more consistent
and detailed information
- Correct case in getrawtransaction which would refuse to serve certain
transactions with invalid scripts
(https://github.com/btcsuite/btcd/issues/210)
(https://github.com/peercoin/ppcd/issues/210)
- Correct error handling in the getrawtransaction RPC which could lead
to a crash in rare cases
(https://github.com/btcsuite/btcd/issues/196)
(https://github.com/peercoin/ppcd/issues/196)
- Update getinfo RPC to include the appropriate 'timeoffset' calculated
from the median network time
- Modify listreceivedbyaddress result type to include txids field so it
is compatible
- Add 'iswatchonly' field to validateaddress result
- Add 'startingpriority' and 'currentpriority' fields to getrawmempool
(https://github.com/btcsuite/btcd/issues/178)
(https://github.com/peercoin/ppcd/issues/178)
- Don't omit the 'confirmations' field from getrawtransaction when it is
zero
- Websocket changes:
Expand All @@ -592,7 +592,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
dumping all of the commands
- Make the usage syntax much more consistent and correct a few cases of
misnamed fields
(https://github.com/btcsuite/btcd/issues/305)
(https://github.com/peercoin/ppcd/issues/305)
- Improve usage errors to show the specific parameter number, reason,
and error code
- Only show the usage for specific command is shown when a valid command
Expand All @@ -611,7 +611,7 @@ Changes in 0.10.0 (Sun Mar 01 2015)
- Remove utility in favor of the RPC getblock method
- Notable developer-related package changes:
- Many of the core packages have been relocated into the btcd repository
(https://github.com/btcsuite/btcd/issues/214)
(https://github.com/peercoin/ppcd/issues/214)
- A new version of the btcjson package that has been completely
redesigned from the ground up based based upon how the project has
evolved and lessons learned while using it since it was first written
Expand All @@ -628,21 +628,21 @@ Changes in 0.10.0 (Sun Mar 01 2015)
and using that data to calculate an offset against the local time
- Misc changes:
- Fix a slow memory leak due to tickers not being stopped
(https://github.com/btcsuite/btcd/issues/189)
(https://github.com/peercoin/ppcd/issues/189)
- Fix an issue where a mix of orphans and SPV clients could trigger a
condition where peers would no longer be served
(https://github.com/btcsuite/btcd/issues/231)
(https://github.com/peercoin/ppcd/issues/231)
- The RPC username and password can now contain symbols which previously
conflicted with special symbols used in URLs
- Improve handling of obtaining random nonces to prevent cases where it
could error when not enough entropy was available
- Improve handling of home directory creation errors such as in the case
of unmounted symlinks (https://github.com/btcsuite/btcd/issues/193)
of unmounted symlinks (https://github.com/peercoin/ppcd/issues/193)
- Improve the error reporting for rejected transactions to include the
inputs which are missing and/or being double spent
- Update sample config file with new options and correct a comment
regarding the fact the RPC server only listens on localhost by default
(https://github.com/btcsuite/btcd/issues/218)
(https://github.com/peercoin/ppcd/issues/218)
- Update the continuous integration builds to run several tools which
help keep code quality high
- Significant amount of internal code cleanup and improvements
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# docker build . -t yourregistry/btcd --build-arg ARCH=arm64v8
#
# For more information how to use this docker image visit:
# https://github.com/btcsuite/btcd/tree/master/docs
# https://github.com/peercoin/ppcd/tree/master/docs
#
# 8333 Mainnet Bitcoin peer-to-peer port
# 8334 Mainet RPC port
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG := github.com/btcsuite/btcd
PKG := github.com/peercoin/ppcd

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/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/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/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/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/btcsuite/btcd/addrmgr"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/addrmgr"
"github.com/peercoin/ppcd/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/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/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/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/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/btcsuite/btcd/addrmgr"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/addrmgr"
"github.com/peercoin/ppcd/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/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/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/btcsuite/btcd/addrmgr"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/addrmgr"
"github.com/peercoin/ppcd/wire"
)

// TestIPTypes ensures the various functions which determine the type of an IP
Expand Down
12 changes: 6 additions & 6 deletions blockchain/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
blockchain
==========

[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions)
[![Build Status](https://github.com/peercoin/ppcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/peercoin/ppcd/actions)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/peercoin/ppcd/blockchain)

Package blockchain implements bitcoin block handling and chain selection rules.
The test coverage is currently only around 60%, but will be increasing over
Expand All @@ -21,7 +21,7 @@ block chain.
## Installation and Updating

```bash
$ go get -u github.com/btcsuite/btcd/blockchain
$ go get -u github.com/peercoin/ppcd/blockchain
```

## Bitcoin Chain Processing Overview
Expand Down Expand Up @@ -61,18 +61,18 @@ is by no means exhaustive:

## Examples

* [ProcessBlock Example](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain#example-BlockChain-ProcessBlock)
* [ProcessBlock Example](https://pkg.go.dev/github.com/peercoin/ppcd/blockchain#example-BlockChain-ProcessBlock)
Demonstrates how to create a new chain instance and use ProcessBlock to
attempt to add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid
block is handled.

* [CompactToBig Example](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain#example-CompactToBig)
* [CompactToBig Example](https://pkg.go.dev/github.com/peercoin/ppcd/blockchain#example-CompactToBig)
Demonstrates how to convert the compact "bits" in a block header which
represent the target difficulty to a big integer and display it using the
typical hex notation.

* [BigToCompact Example](https://pkg.go.dev/github.com/btcsuite/btcd/blockchain#example-BigToCompact)
* [BigToCompact Example](https://pkg.go.dev/github.com/peercoin/ppcd/blockchain#example-BigToCompact)
Demonstrates how to convert a target difficulty into the
compact "bits" in a block header which represent that target difficulty.

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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/database"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/database"
)

// 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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/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/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/chaincfg"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/database"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/chaincfg"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/database"
"github.com/peercoin/ppcd/txscript"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/chaincfg"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/database"
"github.com/peercoin/ppcd/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 @@ -12,8 +12,8 @@ import (
"testing"
"time"

"github.com/btcsuite/btcd/database"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/database"
"github.com/peercoin/ppcd/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/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/chaincfg"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/database"
_ "github.com/btcsuite/btcd/database/ffldb"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/peercoin/ppcd/btcutil"
"github.com/peercoin/ppcd/chaincfg"
"github.com/peercoin/ppcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/database"
_ "github.com/peercoin/ppcd/database/ffldb"
"github.com/peercoin/ppcd/txscript"
"github.com/peercoin/ppcd/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/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/txscript"
"github.com/peercoin/ppcd/btcec/v2"
"github.com/peercoin/ppcd/txscript"
"time"
)

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/btcsuite/btcd/chaincfg/chainhash"
"github.com/peercoin/ppcd/chaincfg/chainhash"
)

var (
Expand Down
Loading

0 comments on commit 5588efe

Please sign in to comment.