This commit is contained in:
jl777
2018-04-11 22:02:53 +03:00
parent e621c0a302
commit 90b5b4fdc8
2 changed files with 4 additions and 2 deletions

View File

@@ -666,13 +666,15 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
} }
else else
{ {
komodo_rwccdata(1,&ccdata); komodo_rwccdata(ASSETCHAINS_SYMBOL,1,&ccdata);
printf("[%s] matched.%d VALID (%s) MoM.%s [%d]\n",ASSETCHAINS_SYMBOL,matched,ccdata.symbol,MoM.ToString().c_str(),MoMdepth); printf("[%s] matched.%d VALID (%s) MoM.%s [%d]\n",ASSETCHAINS_SYMBOL,matched,ccdata.symbol,MoM.ToString().c_str(),MoMdepth);
} }
if ( ccdata.pairs != 0 ) if ( ccdata.pairs != 0 )
free(ccdata.pairs); free(ccdata.pairs);
memset(&ccdata,0,sizeof(ccdata)); memset(&ccdata,0,sizeof(ccdata));
} }
else if ( ASSETCHAINS_SYMBOL[0] == 0 && matched != 0 && notarized != 0 && validated != 0 )
komodo_rwccdata("KMD",1,&ccdata);
if ( matched != 0 ) if ( matched != 0 )
{ {
sp->NOTARIZED_HEIGHT = *notarizedheightp; sp->NOTARIZED_HEIGHT = *notarizedheightp;

View File

@@ -28,7 +28,7 @@ struct komodo_ccdata
}; };
*/ */
int32_t komodo_rwccdata(int32_t rwflag,struct komodo_ccdata *ccdata) int32_t komodo_rwccdata(char *thischain,int32_t rwflag,struct komodo_ccdata *ccdata)
{ {
if ( rwflag == 0 ) if ( rwflag == 0 )
{ {