Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8fc96480dd
  1. 3
      iguana/iguana_bundles.c

3
iguana/iguana_bundles.c

@ -440,6 +440,8 @@ void iguana_bundlepurgefiles(struct iguana_info *coin,struct iguana_bundle *bp)
sprintf(fname,"%s/%s/%d/%d",GLOBAL_TMPDIR,coin->symbol,subdir,bp->bundleheight), OS_remove_directory(fname);
printf("purged hdrsi.[%d] subdir.%d lag.%ld\n",bp->hdrsi,subdir,time(NULL) - bp->emitfinish);
bp->purgetime = (uint32_t)time(NULL);
if ( 0 )
{
for (i=subdir*IGUANA_SUBDIRDIVISOR; i<(subdir+1)*IGUANA_SUBDIRDIVISOR; i++)
{
if ( (bp= coin->bundles[i]) != 0 && time(NULL) < bp->emitfinish+10 )
@ -451,6 +453,7 @@ void iguana_bundlepurgefiles(struct iguana_info *coin,struct iguana_bundle *bp)
printf("remove subdir.%d\n",subdir);
sprintf(fname,"%s/%s/%d",GLOBAL_TMPDIR,coin->symbol,subdir), OS_remove_directory(fname);
}
}
}
uint8_t iguana_recentpeers(struct iguana_info *coin,int32_t *capacityp,struct iguana_peer *peers[])

Loading…
Cancel
Save