diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 0637d6b33..0e5376990 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -151,13 +151,14 @@ UniValue generateBlocks(boost::shared_ptr coinbaseScript, int nG } } std::shared_ptr shared_pblock = std::make_shared(*pblock); - if (!ProcessNewBlock(Params(), shared_pblock, true, NULL)) + if (!ProcessNewBlock(Params(), shared_pblock, true, NULL)) { if (nMineAuxPow) { continue; } else { throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); } + } ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex());