aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/auxpow_tests.cpp2
-rw-r--r--src/test/dogecoin_tests.cpp24
-rw-r--r--src/test/miner_tests.cpp2
-rw-r--r--src/test/pow_tests.cpp2
-rw-r--r--src/test/transaction_tests.cpp2
5 files changed, 16 insertions, 16 deletions
diff --git a/src/test/auxpow_tests.cpp b/src/test/auxpow_tests.cpp
index 11bd7bfa6..481e6d121 100644
--- a/src/test/auxpow_tests.cpp
+++ b/src/test/auxpow_tests.cpp
@@ -362,7 +362,7 @@ BOOST_AUTO_TEST_CASE(auxpow_pow)
mineBlock(block, true);
BOOST_CHECK(CheckAuxPowProofOfWork(block, params));
- // Dogecoin block version 2 can be both AuxPoW and regular, so test 3
+ // Discoin block version 2 can be both AuxPoW and regular, so test 3
block.nVersion = 3;
mineBlock(block, true);
diff --git a/src/test/dogecoin_tests.cpp b/src/test/dogecoin_tests.cpp
index 01a9b7eb0..5c38142e3 100644
--- a/src/test/dogecoin_tests.cpp
+++ b/src/test/dogecoin_tests.cpp
@@ -1,4 +1,4 @@
-// Copyright (c) 2015 The Dogecoin Core developers
+// Copyright (c) 2015 The Discoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE(subsidy_first_100k_test)
for (int nHeight = 0; nHeight <= 100000; nHeight++) {
const Consensus::Params& params = mainParams.GetConsensus(nHeight);
- CAmount nSubsidy = GetDogecoinBlockSubsidy(nHeight, params, ArithToUint256(prevHash));
+ CAmount nSubsidy = GetDiscoinBlockSubsidy(nHeight, params, ArithToUint256(prevHash));
BOOST_CHECK(MoneyRange(nSubsidy));
BOOST_CHECK(nSubsidy <= 1000000 * COIN);
nSum += nSubsidy;
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(subsidy_100k_145k_test)
for (int nHeight = 100000; nHeight <= 145000; nHeight++) {
const Consensus::Params& params = mainParams.GetConsensus(nHeight);
- CAmount nSubsidy = GetDogecoinBlockSubsidy(nHeight, params, ArithToUint256(prevHash));
+ CAmount nSubsidy = GetDiscoinBlockSubsidy(nHeight, params, ArithToUint256(prevHash));
BOOST_CHECK(MoneyRange(nSubsidy));
BOOST_CHECK(nSubsidy <= 500000 * COIN);
nSum += nSubsidy;
@@ -106,17 +106,17 @@ BOOST_AUTO_TEST_CASE(subsidy_post_145k_test)
for (int nHeight = 145000; nHeight < 600000; nHeight++) {
const Consensus::Params& params = mainParams.GetConsensus(nHeight);
- CAmount nSubsidy = GetDogecoinBlockSubsidy(nHeight, params, prevHash);
+ CAmount nSubsidy = GetDiscoinBlockSubsidy(nHeight, params, prevHash);
CAmount nExpectedSubsidy = (500000 >> (nHeight / 100000)) * COIN;
BOOST_CHECK(MoneyRange(nSubsidy));
BOOST_CHECK_EQUAL(nSubsidy, nExpectedSubsidy);
}
// Test reward at 600k+ is constant
- CAmount nConstantSubsidy = GetDogecoinBlockSubsidy(600000, mainParams.GetConsensus(600000), prevHash);
+ CAmount nConstantSubsidy = GetDiscoinBlockSubsidy(600000, mainParams.GetConsensus(600000), prevHash);
BOOST_CHECK_EQUAL(nConstantSubsidy, 10000 * COIN);
- nConstantSubsidy = GetDogecoinBlockSubsidy(700000, mainParams.GetConsensus(700000), prevHash);
+ nConstantSubsidy = GetDiscoinBlockSubsidy(700000, mainParams.GetConsensus(700000), prevHash);
BOOST_CHECK_EQUAL(nConstantSubsidy, 10000 * COIN);
}
@@ -131,7 +131,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_difficulty_limit)
pindexLast.nHeight = 239;
pindexLast.nTime = 1386475638; // Block #239
pindexLast.nBits = 0x1e0ffff0;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1e00ffff);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1e00ffff);
}
BOOST_AUTO_TEST_CASE(get_next_work_pre_digishield)
@@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_pre_digishield)
pindexLast.nHeight = 9599;
pindexLast.nTime = 1386954113;
pindexLast.nBits = 0x1c1a1206;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1c15ea59);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1c15ea59);
}
BOOST_AUTO_TEST_CASE(get_next_work_digishield)
@@ -160,7 +160,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_digishield)
pindexLast.nHeight = 145000;
pindexLast.nTime = 1395094679;
pindexLast.nBits = 0x1b499dfd;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b671062);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b671062);
}
BOOST_AUTO_TEST_CASE(get_next_work_digishield_modulated_upper)
@@ -175,7 +175,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_digishield_modulated_upper)
pindexLast.nHeight = 145107;
pindexLast.nTime = 1395101360;
pindexLast.nBits = 0x1b3439cd;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b4e56b3);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b4e56b3);
}
BOOST_AUTO_TEST_CASE(get_next_work_digishield_modulated_lower)
@@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_digishield_modulated_lower)
pindexLast.nHeight = 149423;
pindexLast.nTime = 1395380447;
pindexLast.nBits = 0x1b446f21;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b335358);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b335358);
}
BOOST_AUTO_TEST_CASE(get_next_work_digishield_rounding)
@@ -206,7 +206,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_digishield_rounding)
pindexLast.nHeight = 145001;
pindexLast.nTime = 1395094727;
pindexLast.nBits = 0x1b671062;
- BOOST_CHECK_EQUAL(CalculateDogecoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b6558a4);
+ BOOST_CHECK_EQUAL(CalculateDiscoinNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x1b6558a4);
}
BOOST_AUTO_TEST_CASE(hardfork_parameters)
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp
index f3ab5d311..ac3666cf2 100644
--- a/src/test/miner_tests.cpp
+++ b/src/test/miner_tests.cpp
@@ -489,7 +489,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
SetMockTime(0);
mempool.clear();
- // Dogecoin: Package selection doesn't work that way because our fees are fundamentally
+ // Discoin: Package selection doesn't work that way because our fees are fundamentally
// different. Need to rationalise in a later release.
// TestPackageSelection(chainparams, scriptPubKey, txFirst);
diff --git a/src/test/pow_tests.cpp b/src/test/pow_tests.cpp
index e112c7339..8cdaea259 100644
--- a/src/test/pow_tests.cpp
+++ b/src/test/pow_tests.cpp
@@ -56,7 +56,7 @@ BOOST_AUTO_TEST_CASE(get_next_work_lower_limit_actual)
}
/* Test the constraint on the upper bound for actual time taken */
-// Replaced by Dogecoin-specific PoW test
+// Replaced by Discoin-specific PoW test
/* BOOST_AUTO_TEST_CASE(get_next_work_upper_limit_actual)
{
SelectParams(CBaseChainParams::MAIN);
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp
index 9124c2ff3..aa00477ce 100644
--- a/src/test/transaction_tests.cpp
+++ b/src/test/transaction_tests.cpp
@@ -689,7 +689,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
std::string reason;
BOOST_CHECK(IsStandardTx(t, reason));
- // Dogecoin: Dust is totally different in Dogecoin, disable these tests
+ // Discoin: Dust is totally different in Discoin, disable these tests
// Check dust with default relay fee:
/* CAmount nDustThreshold = 182 * dustRelayFee.GetFeePerK()/1000 * 3;
BOOST_CHECK_EQUAL(nDustThreshold, 546);