From: Sunny King Date: Wed, 30 May 2012 20:45:59 +0000 (+0100) Subject: PPCoin: Remove redundant check on dupliate coinstake from a350e812 X-Git-Tag: v0.4.0-unstable~166 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=fc10774eb50b2b97c9b49f878dd6566635ecbab0 PPCoin: Remove redundant check on dupliate coinstake from a350e812 --- diff --git a/src/main.cpp b/src/main.cpp index b8b665b..d722b74 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1551,15 +1551,6 @@ bool CBlock::AcceptBlock() CBlockIndex* pindexPrev = (*mi).second; int nHeight = pindexPrev->nHeight+1; - // ppcoin: check for coinstake duplicate - if (IsProofOfStake()) - { // check if coinstake is already connected; that would imply the owner - // of the coinstake sent multiple blocks with the same coinstake - CTxIndex txindex; - if (CTxDB("r").ReadTxIndex(vtx[1].GetHash(), txindex)) - return error("AcceptBlock() : block %s has duplicate coinstake %s", hash.ToString().c_str(), vtx[1].GetHash().ToString().c_str()); - } - // Check proof-of-work or proof-of-stake if (nBits != GetNextTargetRequired(pindexPrev, IsProofOfStake())) return DoS(100, error("AcceptBlock() : incorrect proof-of-work/proof-of-stake"));