From 4f378da03325b2f57ab3107255cd987fc9036ee3 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 13 Sep 2018 22:37:02 +0800 Subject: [PATCH] test suppress again --- iguana/iguana_notary.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index cde5c75d4..9d42efb20 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -68,12 +68,12 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he if ( strcmp(dp->dest,"KMD") == 0 ) { checkpointfreq = DPOW_CHECKPOINTFREQ; - //if ( (strlen(dp->symbol) >= 4 && strncmp(dp->symbol, "STKD", 4) == 0) || (strlen(dp->symbol) >= 6 && strncmp(dp->symbol, "STAKED", 6) == 0) ) - //checkpointfreq = 5; + if ( (strlen(dp->symbol) >= 4 && strncmp(dp->symbol, "STKD", 4) == 0) || (strlen(dp->symbol) >= 6 && strncmp(dp->symbol, "STAKED", 6) == 0) ) + checkpointfreq = 5; if ( dp->DESTHEIGHT < dp->prevDESTHEIGHT+checkpointfreq ) { - suppress = 0; - //fprintf(stderr,"suppress.[%d] %s -> KMD freq KMD blocks.%d\n",suppress,dp->symbol,checkpointfreq); + suppress = 1; + fprintf(stderr,"suppress.[%d] %s -> KMD freq KMD blocks.%d\n",suppress,dp->symbol,checkpointfreq); } } /*if ( strcmp(dp->dest,"KMD") == 0 )//|| strcmp(dp->dest,"CHAIN") == 0 )