minor miner corrections
This commit is contained in:
parent
8d7ce89b2c
commit
bddc6f24a5
0
src/pow.cpp
Normal file → Executable file
0
src/pow.cpp
Normal file → Executable 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;
|
||||
|
||||
@ -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
0
src/test/miner_tests.cpp
Normal file → Executable file
Loading…
Reference in New Issue
Block a user