X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fminer.cpp;h=7006cbed46eaf6d19c6762c901adbc43853bb23f;hb=cdef376f34dfbd06c8a8673fdb5625d5fefbc851;hp=756cf6fa98cb65f7b669afaef9bf238f93f95c2b;hpb=4a1fde40600e9767918279ac0cb6c18ba9beef1a;p=novacoin.git diff --git a/src/miner.cpp b/src/miner.cpp index 756cf6f..7006cbe 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -313,9 +313,12 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake) if (!tx.UpdateCoins(viewTemp, txundo, pindexPrev->nHeight+1, pblock->nTime)) continue; +*/ + // push changes from the second layer cache to the first one viewTemp.Flush(); -*/ + uint256 hash = tx.GetHash(); + // Added pblock->vtx.push_back(tx); nBlockSize += nTxSize; @@ -330,7 +333,6 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake) } // Add transactions that depend on this one to the priority queue - uint256 hash = tx.GetHash(); if (mapDependers.count(hash)) { BOOST_FOREACH(COrphan* porphan, mapDependers[hash])