Remove asserts
authoralex <alex@alex-VirtualBox.(none)>
Sun, 18 Aug 2013 14:12:33 +0000 (18:12 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Sun, 18 Aug 2013 14:12:33 +0000 (18:12 +0400)
src/main.cpp

index 18c0b17..26e89f0 100644 (file)
@@ -2147,8 +2147,6 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c
 
     if (IsProofOfStake())
     {
-        assert(nNonce == 0);
-
         // Coinbase output should be empty if proof-of-stake block
         if (vtx[0].vout.size() != 1 || !vtx[0].vout[0].IsEmpty())
             return DoS(100, error("CheckBlock() : coinbase output not empty for proof-of-stake block"));
@@ -2170,8 +2168,6 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c
     }
     else
     {
-        assert(nNonce != 0);
-
         // Coinbase fee paid until 20 Sep 2013
         int64 nFee = GetBlockTime() < CHAINCHECKS_SWITCH_TIME ? vtx[0].GetMinFee() - MIN_TX_FEE : 0;