Test
This commit is contained in:
@@ -725,13 +725,13 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
|||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
/*while ( KOMODO_PASSPORT_INITDONE == 0 )
|
while ( KOMODO_PASSPORT_INITDONE == 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,".");
|
fprintf(stderr,".");
|
||||||
sleep(3);
|
sleep(3);
|
||||||
}
|
}
|
||||||
if ( KOMODO_PASSPORT_INITDONE == 0 ) // komodo_isrealtime(&ht) == 0 || init time already in DB
|
if ( KOMODO_PASSPORT_INITDONE == 0 ) // komodo_isrealtime(&ht) == 0 || init time already in DB
|
||||||
return(0);*/
|
return(0);
|
||||||
if ( baseid == USD && (height <= 4000 || komodo_isrealtime(&ht) == 0) )
|
if ( baseid == USD && (height <= 4000 || komodo_isrealtime(&ht) == 0) )
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
@@ -1190,8 +1190,8 @@ void komodo_passport_iteration()
|
|||||||
fseek(fp,0,SEEK_END);
|
fseek(fp,0,SEEK_END);
|
||||||
if ( ftell(fp) > lastpos[baseid] )
|
if ( ftell(fp) > lastpos[baseid] )
|
||||||
{
|
{
|
||||||
if ( 0 && lastpos[baseid] == 0 && strcmp(symbol,"KMD") == 0 )
|
//if ( 0 && lastpos[baseid] == 0 && strcmp(symbol,"KMD") == 0 )
|
||||||
printf("passport refid.%d %s fname.(%s) base.%s\n",refid,symbol,fname,base);
|
printf("passport refid.%d %s fname.(%s) base.%s %ld %ld\n",refid,symbol,fname,base,ftell(fp),lastpos[baseid]);
|
||||||
fseek(fp,lastpos[baseid],SEEK_SET);
|
fseek(fp,lastpos[baseid],SEEK_SET);
|
||||||
while ( komodo_parsestatefile(sp,fp,symbol,dest) >= 0 && n < 1000 )
|
while ( komodo_parsestatefile(sp,fp,symbol,dest) >= 0 && n < 1000 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user