From 541f90199df665493c73abb915338f540bbd4328 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 13 Mar 2017 23:55:00 +0200 Subject: [PATCH] Make mempool reject banned undo --- src/komodo_gateway.h | 2 +- src/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 4fafbaf5c..a1480f83b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -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); } diff --git a/src/main.cpp b/src/main.cpp index 8b5278720..8552aff8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;