minor miner corrections

This commit is contained in:
Ray Engelking 2018-01-16 17:15:16 -05:00
parent 8d7ce89b2c
commit bddc6f24a5
4 changed files with 2 additions and 3 deletions

0
src/pow.cpp Normal file → Executable file
View File

View File

@ -120,8 +120,7 @@ UniValue generateBlocks(std::shared_ptr<CReserveScript> coinbaseScript, int nGen
UniValue blockHashes(UniValue::VARR);
while (nHeight < nHeightEnd)
{
// std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(coinbaseScript->reserveScript, true, strTxComment));
std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(coinbaseScript->reserveScript, true));
std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(coinbaseScript->reserveScript, true, strTxComment));
if (!pblocktemplate.get())
throw JSONRPCError(RPC_INTERNAL_ERROR, "Couldn't create new block");
CBlock *pblock = &pblocktemplate->block;

View File

@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(subsidy_limit_test)
nSum += nSubsidy * 1000;
BOOST_CHECK(MoneyRange(nSum));
}
BOOST_CHECK_EQUAL(nSum, 8399999990760000ULL);
BOOST_CHECK_EQUAL(nSum, 15999999991200000ULL);
}
bool ReturnFalse() { return false; }

0
src/test/miner_tests.cpp Normal file → Executable file
View File