Don't reaccept coinstakes
[novacoin.git] / src / rpcmining.cpp
index 72b850e..84cd21e 100644 (file)
@@ -372,7 +372,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
         uint256 txHash = tx.GetHash();
         setTxIndex[txHash] = i++;
 
-        if (tx.IsCoinBase())
+        if (tx.IsCoinBase() || tx.IsCoinStake())
             continue;
 
         Object entry;