Skip to content

Commit

Permalink
Rename bitcoin.org to ioncore.xyz, ref: ioncoincore#13
Browse files Browse the repository at this point in the history
  • Loading branch information
cevap committed Feb 6, 2021
1 parent 299ed7e commit 2220d1a
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 35 deletions.
2 changes: 1 addition & 1 deletion contrib/debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Source: https://github.com/cevap/ion
Files: *
Copyright: 2009-2017, Bitcoin Core Developers
License: Expat
Comment: The Bitcoin Core Developers encompasses the current developers listed on bitcoin.org,
Comment: The Bitcoin Core Developers encompasses the current developers listed on ioncore.xyz,
as well as the numerous contributors to the project.

Files: debian/*
Expand Down
2 changes: 1 addition & 1 deletion contrib/verifysfbinaries/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Verify SF Binaries ###
This script attempts to download the signature file `SHA256SUMS.asc` from https://bitcoin.org.
This script attempts to download the signature file `SHA256SUMS.asc` from https://ioncore.xyz.

It first checks if the signature passes, and then downloads the files specified in the file, and checks if the hashes of these files match those that are specified in the signature file.

Expand Down
8 changes: 4 additions & 4 deletions contrib/verifysfbinaries/verify.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

### This script attempts to download the signature file SHA256SUMS.asc from bitcoin.org
### This script attempts to download the signature file SHA256SUMS.asc from ioncore.xyz
### It first checks if the signature passes, and then downloads the files specified in
### the file, and checks if the hashes of these files match those that are specified
### in the signature file.
Expand All @@ -18,11 +18,11 @@ WORKINGDIR="/tmp/bitcoin"
TMPFILE="hashes.tmp"

#this URL is used if a version number is not specified as an argument to the script
SIGNATUREFILE="https://github.com/ioncoincore/ion/releases/download/v3.2.00/SHA256SUMS.asc"
SIGNATUREFILE="https://ioncore.xyz/bin/3.0.4.1/SHA256SUMS.asc"

SIGNATUREFILENAME="SHA256SUMS.asc"
RCSUBDIR="test/"
BASEDIR="https://bitcoin.org/bin/"
BASEDIR="https://ioncore.xyz/bin/"
VERSIONPREFIX="bitcoin-"
RCVERSIONSTRING="rc"

Expand Down Expand Up @@ -62,7 +62,7 @@ WGETOUT=$(wget -N "$BASEDIR$SIGNATUREFILENAME" 2>&1)
#and then see if wget completed successfully
if [ $? -ne 0 ]; then
echo "Error: couldn't fetch signature file. Have you specified the version number in the following format?"
echo "[bitcoin-]<version>-[rc[0-9]] (example: bitcoin-0.9.2-rc1)"
echo "[bitcoin-]<version>-[rc[0-9]] (example: bitcoin-3.0.4-rc1)"
echo "wget output:"
echo "$WGETOUT"|sed 's/^/\t/g'
exit 2
Expand Down
53 changes: 32 additions & 21 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,27 +186,38 @@ static const Checkpoints::CCheckpointData data = {
2000 // * estimated number of transactions per day after checkpoint
};

// Used for deployment and min-proto-version signalling, so it needs a higher threshold
static Consensus::LLMQParams llmq400_85 = {
.type = Consensus::LLMQ_400_85,
.name = "llmq_400_85",
.size = 400,
.minSize = 350,
.threshold = 340,

.dkgInterval = 24 * 24, // one DKG every 24 hours
.dkgPhaseBlocks = 4,
.dkgMiningWindowStart = 20, // dkgPhaseBlocks * 5 = after finalization
.dkgMiningWindowEnd = 48, // give it a larger mining window to make sure it is mined
.dkgBadVotesThreshold = 300,

.signingActiveQuorumCount = 4, // four days worth of LLMQs

.keepOldConnections = 5,
.recoveryMembers = 100,
};

libzerocoin::ZerocoinParams* CChainParams::Zerocoin_Params(bool useModulusV1) const
static Checkpoints::MapCheckpoints mapCheckpointsTestnet =
boost::assign::map_list_of
( 1, uint256("000000b86fdd7f2ae9e9973e73790492989113075a2d5c581495ab7bb2ad5711") ) // First block
( 10, uint256("0000008c29a7d680710d1cc821d79f33ba0159bc26d9e233bccfabd668b0430e") ) // Confirmation of first block
( 73, uint256("0000000000414be74794bb2e455e24c0e446ad36df162c69a81742dc07f51d0d") ) //
( 74, uint256("1881b795f7531232ba90ade14c16b7f0cf9392b6c9fe76a3d5bfeab9150b7dca") ) // ERROR: AcceptBlock : prev block 1881b795f7531232ba90ade14c16b7f0cf9392b6c9fe76a3d5bfeab9150b7dca is invalid, unable to add block c54904618b734eeb3f098b442934586806f869e80656eacfba65ca91a091cf31
( 75, uint256("c54904618b734eeb3f098b442934586806f869e80656eacfba65ca91a091cf31") ) // ERROR: AcceptBlock : prev block 1881b795f7531232ba90ade14c16b7f0cf9392b6c9fe76a3d5bfeab9150b7dca is invalid, unable to add block c54904618b734eeb3f098b442934586806f869e80656eacfba65ca91a091cf31
( 300, uint256("000000125e3e3d005aa72281e02b4ebaabc2fa9aed817b9365a8d29bb7901c10") ) // Last POW Block
( 75000, uint256("20faec3994dac57fb88748e29139974522c91036e1bf8ff204c769a90fab5a12") ) // Fork June 2017
( 85000, uint256("43ee28cd1f804dafe05ef120569726e50e9e6f2b634746925742cbd9f738c201") ) // Fork June 2017
( 88800, uint256("2807b46cbfa28a2d4854215b40f4db64b62fc71a1d010844d67d7c03888ce692") ) // Fork June 2017
( 331099, uint256("1ba565ae5336eeb1cbdc4c8804f229f685391d6b9a8568f7baf5c70b80bed17e") ) // Fork March 2018
( 331100, uint256("b12c1f1b86a40b96a192b558e845a67a7085bcad3eae986524f19f6ee4131a80") ) // Fork March 2018
( 334500, uint256("c7dfe5fe124807fdc10ca60021f19ec87d00a107feea0dc5ceda5be26db4e5d4") ) // Fork March 2018
( 337000, uint256("cefc4c13a1b2fc3cda8b04244b35ce76b8e32fe22cc6bce44b1a9971dddd3074") ) // Fork March 2018
( 370000, uint256("c2761da33448b864d880503bfd9a94961c93ecc539360e466336d13b2569142f") );// Fork March 2018

static const Checkpoints::CCheckpointData dataTestnet = {
&mapCheckpointsTestnet,
1513532336,
742197,
2000};

static Checkpoints::MapCheckpoints mapCheckpointsRegtest =
boost::assign::map_list_of(0, uint256("0x671d0510c128608897d98d1819d26b40810c8b7e4901447a909c87a9edc2f5ec"));
static const Checkpoints::CCheckpointData dataRegtest = {
&mapCheckpointsRegtest,
1518696183,
0,
100};

libzerocoin::ZerocoinParams* CChainParams::Zerocoin_Params() const
{
assert(this);
static CBigNum bnHexModulus = 0;
Expand Down
16 changes: 12 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3071,11 +3071,19 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
*/
if (block.IsProofOfStake()) {

if (pindex->nHeight <= 73 && Params().NetworkID() == CBaseChainParams::TESTNET)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");
if (Params().NetworkID() == CBaseChainParams::TESTNET)){

if (pindex->nHeight <= 73)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");

if (pindex->nHeight != 75 && Params().NetworkID() == CBaseChainParams::TESTNET)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");

}

if (pindex->nHeight <= 454)
if (pindex->nHeight <= 454 && Params().NetworkID() != CBaseChainParams::TESTNET && Params().NetworkID() != CBaseChainParams::REGTEST)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");
}
Expand Down
8 changes: 4 additions & 4 deletions src/test/netbase_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ bool static TestSplitHost(std::string test, std::string host, int port)

BOOST_AUTO_TEST_CASE(netbase_splithost)
{
BOOST_CHECK(TestSplitHost("www.bitcoin.org", "www.bitcoin.org", -1));
BOOST_CHECK(TestSplitHost("[www.bitcoin.org]", "www.bitcoin.org", -1));
BOOST_CHECK(TestSplitHost("www.bitcoin.org:80", "www.bitcoin.org", 80));
BOOST_CHECK(TestSplitHost("[www.bitcoin.org]:80", "www.bitcoin.org", 80));
BOOST_CHECK(TestSplitHost("www.ioncore.xyz", "www.ioncore.xyz", -1));
BOOST_CHECK(TestSplitHost("[www.ioncore.xyz]", "www.ioncore.xyz", -1));
BOOST_CHECK(TestSplitHost("www.ioncore.xyz:80", "www.ioncore.xyz", 80));
BOOST_CHECK(TestSplitHost("[www.ioncore.xyz]:80", "www.ioncore.xyz", 80));
BOOST_CHECK(TestSplitHost("127.0.0.1", "127.0.0.1", -1));
BOOST_CHECK(TestSplitHost("127.0.0.1:9999", "127.0.0.1", 9999));
BOOST_CHECK(TestSplitHost("[127.0.0.1]", "127.0.0.1", -1));
Expand Down

0 comments on commit 2220d1a

Please sign in to comment.