|
|
@ -61,20 +61,21 @@ void dpow_checkpointset(struct supernet_info *myinfo,struct dpow_checkpoint *che |
|
|
|
void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t height,bits256 hash,uint32_t timestamp,uint32_t blocktime) |
|
|
|
{ |
|
|
|
//struct komodo_ccdataMoMoM mdata; cJSON *blockjson; uint64_t signedmask; struct iguana_info *coin;
|
|
|
|
void **ptrs; char str[65]; struct dpow_checkpoint checkpoint; int32_t checkpointfreq,i,ht,suppress=0; struct dpow_block *bp; |
|
|
|
void **ptrs; char str[65]; struct dpow_checkpoint checkpoint; int32_t i,ht,suppress=0; struct dpow_block *bp; |
|
|
|
dpow_checkpointset(myinfo,&dp->last,height,hash,timestamp,blocktime); |
|
|
|
checkpoint = dp->srcfifo[dp->srcconfirms]; |
|
|
|
dpow_fifoupdate(myinfo,dp->srcfifo,dp->last); |
|
|
|
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 ( dp->DESTHEIGHT < dp->prevDESTHEIGHT+checkpointfreq ) |
|
|
|
{ |
|
|
|
if ( strncmp(dp->symbol, "STKD", 4) == 0) || strncmp(dp->symbol, "STAKED", 6) == 0) ) |
|
|
|
suppress = 0 |
|
|
|
else |
|
|
|
suppress = 1; |
|
|
|
fprintf(stderr,"suppress.[%d] %s -> KMD freq KMD prevDESTHEIGHT.%d\n",suppress,dp->symbol,dp->prevDESTHEIGHT); |
|
|
|
//fprintf(stderr,"suppress.[%d] %s -> KMD freq KMD prevDESTHEIGHT.%d\n",suppress,dp->symbol,dp->prevDESTHEIGHT);
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/*if ( strcmp(dp->dest,"KMD") == 0 )//|| strcmp(dp->dest,"CHAIN") == 0 )
|
|
|
|
{ |
|
|
|