From 5bd725d833a567e84fecc155831b2341d6accdc6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Apr 2016 14:18:59 -0500 Subject: [PATCH] test --- iguana/iguana_bundles.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 280c1e1f8..ad132b367 100755 --- a/iguana/iguana_bundles.c +++ b/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) { 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; jn; j++) {