|
|
@ -1979,7 +1979,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp, |
|
|
|
static int32_t totalerrs,totalvalidated; |
|
|
|
FILE *fp; char fname[1024]; uint8_t *blockspace; uint32_t now = (uint32_t)time(NULL); |
|
|
|
int32_t i,max,len,errs = 0; int64_t total = 0; |
|
|
|
printf("validate.[%d]\n",bp->hdrsi); |
|
|
|
//printf("validate.[%d]\n",bp->hdrsi);
|
|
|
|
if ( bp->validated <= 1 || forceflag != 0 ) |
|
|
|
{ |
|
|
|
sprintf(fname,"%s/%s/validated/%d",GLOBAL_DBDIR,coin->symbol,bp->bundleheight); |
|
|
@ -1991,7 +1991,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp, |
|
|
|
{ |
|
|
|
printf("error reading.(%s)\n",fname); |
|
|
|
total = bp->validated = 0; |
|
|
|
} else printf("(%s) total.%d validated.%u\n",fname,(int32_t)total,bp->validated); |
|
|
|
} //else printf("(%s) total.%d validated.%u\n",fname,(int32_t)total,bp->validated);
|
|
|
|
} else OS_removefile(fname,1); |
|
|
|
fclose(fp); |
|
|
|
} |
|
|
|