|
|
@ -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) |
|
|
|
{ |
|
|
|
static const bits256 zero; |
|
|
|
char fname[1024]; FILE *fp; int32_t subdir,hdrsi,j,i,m = 0; uint32_t ipbits = 0; |
|
|
|
if ( bp->purgetime == 0 && time(NULL) > bp->emitfinish+3600 ) |
|
|
|
char fname[1024]; FILE *fp; int32_t subdir,hdrsi,j,lasti,i,m = 0; uint32_t ipbits = 0; |
|
|
|
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++) |
|
|
|
{ |
|
|
|