|
|
|
@ -116,7 +116,7 @@ UniValue generateBlocks(std::shared_ptr<CReserveScript> coinbaseScript, int nGen
|
|
|
|
|
}
|
|
|
|
|
unsigned int nExtraNonce = 0;
|
|
|
|
|
UniValue blockHashes(UniValue::VARR);
|
|
|
|
|
while (nHeight < nHeightEnd)
|
|
|
|
|
while (nHeight < nHeightEnd && !ShutdownRequested())
|
|
|
|
|
{
|
|
|
|
|
std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(coinbaseScript->reserveScript));
|
|
|
|
|
if (!pblocktemplate.get())
|
|
|
|
|