@@ -4623,13 +4623,11 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
46234623
46244624 // Now that this loop if completed. Check if we have zPIV inputs.
46254625 if (hasZPIVInputs){
4626- LogPrintf (" It has ZPIV Inputs!!\n " );
46274626 for (CTxIn zPivInput : zPIVInputs) {
46284627 CoinSpend spend = TxInToZerocoinSpend (zPivInput);
46294628
46304629 // First check if the serials were not already spent on the forked blocks.
46314630 CBigNum coinSerial = spend.getCoinSerialNumber ();
4632- LogPrintf (" coinSerial is %s\n " , coinSerial.ToString (10 ));
46334631 for (CBigNum serial : vBlockSerials){
46344632 if (serial == coinSerial){
46354633 return state.DoS (100 , error (" %s: serial double spent on fork" , __func__));
@@ -4640,12 +4638,9 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
46404638 int nHeightTx = 0 ;
46414639 if (IsSerialInBlockchain (spend.getCoinSerialNumber (), nHeightTx)){
46424640 // if the height is nHeightTx > chainSplit means that the spent occurred after the chain split
4643- LogPrintf (" Here nHeightTx is %d while splitHeight %d\n " , nHeightTx, splitHeight);
4644- if (nHeightTx <= splitHeight){
4641+ if (nHeightTx <= splitHeight)
46454642 return state.DoS (100 , error (" %s: serial double spent on main chain" , __func__));
4646- }
46474643 }
4648- LogPrintf (" But passes the checks\n " , coinSerial.ToString (10 ));
46494644
46504645 if (!ContextualCheckZerocoinSpendNoSerialCheck (stakeTxIn, spend, pindex, 0 ))
46514646 return state.DoS (100 ,error (" %s: ContextualCheckZerocoinSpend failed for tx %s" , __func__,
0 commit comments