This commit is contained in:
jl777
2017-03-13 23:26:14 +02:00
parent 22c1067533
commit e699e13dfb
2 changed files with 4 additions and 1 deletions

View File

@@ -639,7 +639,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{
if ( block.vtx[i].vin[j].prevout.hash == array[k] && block.vtx[i].vin[j].prevout.n == 1 )
{
//printf("banned tx.%d being used at ht.%d txi.%d vini.%d\n",k,height,i,j);
printf("banned tx.%d being used at ht.%d txi.%d vini.%d\n",k,height,i,j);
return(-1);
}
}

View File

@@ -3189,7 +3189,10 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat
return state.DoS(100, error("CheckBlock(): out-of-bounds SigOpCount"),
REJECT_INVALID, "bad-blk-sigops", true);
if ( komodo_check_deposit(height,block) < 0 )
{
fprintf(stderr,"check deposit rejection\n");
return(false);
}
return true;
}