Bugfix: don't resurrect coinstake transactions
authoralex <alex@alex-VirtualBox.(none)>
Sun, 19 Jan 2014 04:29:30 +0000 (08:29 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Sun, 19 Jan 2014 04:29:30 +0000 (08:29 +0400)
src/main.cpp

index 09f859c..f024819 100644 (file)
@@ -1790,7 +1790,7 @@ bool CBlock::SetBestChain(CBlockIndex* pindexNew)
 
         // Queue memory transactions to resurrect
         BOOST_FOREACH(const CTransaction& tx, block.vtx)
-            if (!tx.IsCoinBase())
+            if (!tx.IsCoinBase() && !tx.IsCoinStake())
                 vResurrect.push_back(tx);
     }