if (nBlockSigOps + nTxSigOps >= MAX_BLOCK_SIGOPS)
continue;
+/*
+ * We need to call UpdateCoins using actual block timestamp, so don't perform this here.
+ *
CTxUndo txundo;
if (!tx.UpdateCoins(viewTemp, txundo, pindexPrev->nHeight+1, pblock->nTime))
continue;
// push changes from the second layer cache to the first one
viewTemp.Flush();
-
+*/
// Added
pblock->vtx.push_back(tx);
nBlockSize += nTxSize;
}
++nExtraNonce;
- unsigned int nHeight = pindexPrev->nHeight+1; // Height first in coinbase required for block.version=2
+ unsigned int nHeight = pindexPrev->nHeight+1; // Height first in coinbase required
pblock->vtx[0].vin[0].scriptSig = (CScript() << nHeight << CBigNum(nExtraNonce)) + COINBASE_FLAGS;
assert(pblock->vtx[0].vin[0].scriptSig.size() <= 100);
}
else
Sleep(nMinerSleep);
-
- continue;
}
}