Test
This commit is contained in:
@@ -238,7 +238,7 @@ long komodo_parsestatefiledata(struct komodo_state *sp,uint8_t *filedata,long *f
|
|||||||
errs++;
|
errs++;
|
||||||
if ( memread(¬arized_desttxid,sizeof(notarized_desttxid),filedata,&fpos,datalen) != sizeof(notarized_desttxid) )
|
if ( memread(¬arized_desttxid,sizeof(notarized_desttxid),filedata,&fpos,datalen) != sizeof(notarized_desttxid) )
|
||||||
errs++;
|
errs++;
|
||||||
//if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 && sp != 0 )
|
if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 && sp != 0 )
|
||||||
printf("%s load[%s.%d -> %s] NOTARIZED %d %s\n",ASSETCHAINS_SYMBOL,symbol,sp->NUM_NPOINTS,dest,notarized_height,notarized_hash.ToString().c_str());
|
printf("%s load[%s.%d -> %s] NOTARIZED %d %s\n",ASSETCHAINS_SYMBOL,symbol,sp->NUM_NPOINTS,dest,notarized_height,notarized_hash.ToString().c_str());
|
||||||
//if ( matched != 0 ) global independent states -> inside *sp
|
//if ( matched != 0 ) global independent states -> inside *sp
|
||||||
komodo_eventadd_notarized(sp,symbol,ht,dest,notarized_hash,notarized_desttxid,notarized_height);
|
komodo_eventadd_notarized(sp,symbol,ht,dest,notarized_hash,notarized_desttxid,notarized_height);
|
||||||
|
|||||||
@@ -1452,7 +1452,7 @@ void komodo_passport_iteration()
|
|||||||
base = (char *)CURRENCIES[baseid];
|
base = (char *)CURRENCIES[baseid];
|
||||||
if ( baseid+1 != refid )
|
if ( baseid+1 != refid )
|
||||||
{
|
{
|
||||||
if ( baseid == 32 || ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( baseid == 32 || strcmp(ASSETCHAINS_SYMBOL,base) == 0 )
|
||||||
{
|
{
|
||||||
refsp->RTmask &= ~(1LL << baseid);
|
refsp->RTmask &= ~(1LL << baseid);
|
||||||
komodo_statefname(fname,baseid<32?base:(char *)"",(char *)"komodostate");
|
komodo_statefname(fname,baseid<32?base:(char *)"",(char *)"komodostate");
|
||||||
@@ -1462,6 +1462,7 @@ void komodo_passport_iteration()
|
|||||||
if ( (filedata= OS_fileptr(&datalen,fname)) != 0 )
|
if ( (filedata= OS_fileptr(&datalen,fname)) != 0 )
|
||||||
{
|
{
|
||||||
fpos = 0;
|
fpos = 0;
|
||||||
|
printf("processing %s %ldKB\n",fname,datalen/1024);
|
||||||
while ( komodo_parsestatefiledata(sp,filedata,&fpos,datalen,symbol,dest) >= 0 )
|
while ( komodo_parsestatefiledata(sp,filedata,&fpos,datalen,symbol,dest) >= 0 )
|
||||||
;
|
;
|
||||||
printf("took %d seconds to process %s %ldKB\n",(int32_t)(time(NULL)-starttime),fname,datalen/1024);
|
printf("took %d seconds to process %s %ldKB\n",(int32_t)(time(NULL)-starttime),fname,datalen/1024);
|
||||||
@@ -1472,6 +1473,7 @@ void komodo_passport_iteration()
|
|||||||
else if ( (fp= fopen(fname,"rb")) != 0 && sp != 0 )
|
else if ( (fp= fopen(fname,"rb")) != 0 && sp != 0 )
|
||||||
{
|
{
|
||||||
fseek(fp,0,SEEK_END);
|
fseek(fp,0,SEEK_END);
|
||||||
|
printf("couldnt OS_fileptr(%s), freading %ldKB\n",fname,ftell(fp)/1024)
|
||||||
if ( ftell(fp) > lastpos[baseid] )
|
if ( ftell(fp) > lastpos[baseid] )
|
||||||
{
|
{
|
||||||
if ( ASSETCHAINS_SYMBOL[0] != 0 )
|
if ( ASSETCHAINS_SYMBOL[0] != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user