Make mempool reject banned undo

This commit is contained in:
jl777
2017-03-13 23:55:00 +02:00
parent 6d1d0330fe
commit 541f90199d
2 changed files with 4 additions and 2 deletions

View File

@@ -651,7 +651,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{
if ( n == 2 && block.vtx[0].vout[1].nValue > COIN/10 )
{
fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n);
//fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n);
if ( height >= 235300 )
return(-1);
}

View File

@@ -3205,7 +3205,9 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat
REJECT_INVALID, "bad-blk-sigops", true);
if ( komodo_check_deposit(height,block) < 0 )
{
fprintf(stderr,"check deposit rejection\n");
static uint32_t counter;
if ( counter++ < 100 )
fprintf(stderr,"check deposit rejection\n");
return(false);
}
return true;