Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6aa15bcc19
  1. 6
      iguana/iguana_bundles.c

6
iguana/iguana_bundles.c

@ -624,12 +624,16 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp)
}
else
{
fname[0] = 0;
checki = iguana_peerfname(coin,&hdrsi,GLOBALTMPDIR,fname,0,block->RO.hash2,zero,1,0);
if ( (fp= fopen(fname,"rb")) != 0 )
if ( hdrsi == bp->hdrsi && checki == i && (fp= fopen(fname,"rb")) != 0 )
{
fseek(fp,0,SEEK_END);
if ( ftell(fp) > sizeof(struct iguana_ramchaindata) )
{
printf("[%d:%d] %s %ld\n",bp->hdrsi,i,fname,ftell(fp));
ready++;
}
fclose(fp);
} else iguana_blockunmark(coin,block,bp,i,0);
}

Loading…
Cancel
Save