Skip to content

Commit 67f81d7

Browse files
authored
Merge pull request #116 from DigiByte-Core/fix/tests-subsidy
Fix tests related to subsidy
2 parents 52875dc + abfc477 commit 67f81d7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/test/validation_tests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static void TestBlockSubsidy(const Consensus::Params& consensusParams, int nMaxB
174174
}
175175

176176
CAmount nSubsidy = GetBlockSubsidy(nMaxBlocks, consensusParams);
177-
CAmount nExpectedSubsidy = 1 * COIN;
177+
CAmount nExpectedSubsidy = 0 * COIN;
178178

179179
BOOST_CHECK_EQUAL(nSubsidy, nExpectedSubsidy);
180180

src/validation.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,6 @@ CTransactionRef GetTransaction(const CBlockIndex* const block_index, const CTxMe
12011201
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
12021202
{
12031203
CAmount nSubsidy = COIN;
1204-
LogPrintf("block height for reward is %d\n", nHeight);
12051204

12061205
if (nHeight < consensusParams.nDiffChangeTarget) { // < 67200
12071206
if (nHeight < 1440)

0 commit comments

Comments
 (0)