|
|
@ -187,12 +187,13 @@ void iguana_notarystats(char *fname,int32_t totals[64],int32_t dispflag) |
|
|
|
fpos = ftell(fp); |
|
|
|
if (fread(&height,1,sizeof(height),fp) == sizeof(height) && fread(&signedmask,1,sizeof(signedmask),fp) == sizeof(signedmask) ) |
|
|
|
{ |
|
|
|
printf("%6d %016llx\n",height,(long long)signedmask); |
|
|
|
if ( height < prevheight ) |
|
|
|
{ |
|
|
|
startfpos = fpos; |
|
|
|
if ( iter == 0 ) |
|
|
|
printf("found reversed height %d vs %d\n",height,prevheight); |
|
|
|
else printf("fatal unexpected height reversal %d vs %d\n",height,prevheight); |
|
|
|
else printf("fpos.%ld fatal unexpected height reversal %d vs %d\n",fpos,height,prevheight); |
|
|
|
} |
|
|
|
if ( iter == 1 && height >= 180000 ) |
|
|
|
{ |
|
|
@ -204,7 +205,10 @@ void iguana_notarystats(char *fname,int32_t totals[64],int32_t dispflag) |
|
|
|
} else break; |
|
|
|
} |
|
|
|
if ( iter == 0 ) |
|
|
|
{ |
|
|
|
fseek(fp,startfpos,SEEK_SET); |
|
|
|
printf("set startfpos %ld\n",startfpos); |
|
|
|
} |
|
|
|
} |
|
|
|
fclose(fp); |
|
|
|
if ( dispflag != 0 ) |
|
|
|