Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5bd725d833
  1. 7
      iguana/iguana_bundles.c

7
iguana/iguana_bundles.c

@ -419,8 +419,11 @@ struct iguana_txid *iguana_bundletx(struct iguana_info *coin,struct iguana_bundl
void iguana_bundlepurgefiles(struct iguana_info *coin,struct iguana_bundle *bp) void iguana_bundlepurgefiles(struct iguana_info *coin,struct iguana_bundle *bp)
{ {
static const bits256 zero; static const bits256 zero;
char fname[1024]; FILE *fp; int32_t subdir,hdrsi,j,i,m = 0; uint32_t ipbits = 0; char fname[1024]; FILE *fp; int32_t subdir,hdrsi,j,lasti,i,m = 0; uint32_t ipbits = 0;
if ( bp->purgetime == 0 && time(NULL) > bp->emitfinish+3600 ) if ( coin->current != 0 )
lasti = coin->current->hdrsi;
else lasti = 0;
if ( bp->purgetime == 0 && time(NULL) > bp->emitfinish+600 && bp->hdrsi < lasti-2 )
{ {
for (j=m=0; j<bp->n; j++) for (j=m=0; j<bp->n; j++)
{ {

Loading…
Cancel
Save