|
@ -400,7 +400,7 @@ void iguana_coinflush(struct iguana_info *coin) |
|
|
int32_t hdrsi; struct iguana_bundle *bp; char fname[1024],fname2[1024]; FILE *fp,*fp2=0; |
|
|
int32_t hdrsi; struct iguana_bundle *bp; char fname[1024],fname2[1024]; FILE *fp,*fp2=0; |
|
|
for (hdrsi=0; hdrsi<coin->bundlescount; hdrsi++) |
|
|
for (hdrsi=0; hdrsi<coin->bundlescount; hdrsi++) |
|
|
{ |
|
|
{ |
|
|
if ( (bp= coin->bundles[hdrsi]) != 0 && time(NULL) > bp->dirty+60 && bp->ramchain.H.data != 0 && bp->ramchain.A != 0 && bp->ramchain.Uextras != 0 ) |
|
|
if ( (bp= coin->bundles[hdrsi]) != 0 && time(NULL) > bp->dirty+600 && bp->ramchain.H.data != 0 && bp->ramchain.A != 0 && bp->ramchain.Uextras != 0 ) |
|
|
{ |
|
|
{ |
|
|
sprintf(fname,"accounts/%s/debits.%d",coin->symbol,bp->bundleheight); |
|
|
sprintf(fname,"accounts/%s/debits.%d",coin->symbol,bp->bundleheight); |
|
|
sprintf(fname2,"accounts/%s/lastspends.%d",coin->symbol,bp->bundleheight); |
|
|
sprintf(fname2,"accounts/%s/lastspends.%d",coin->symbol,bp->bundleheight); |
|
@ -494,7 +494,6 @@ void iguana_coinloop(void *arg) |
|
|
if ( coin->longestchain+10000 > coin->blocks.maxbits ) |
|
|
if ( coin->longestchain+10000 > coin->blocks.maxbits ) |
|
|
iguana_recvalloc(coin,coin->longestchain + 100000); |
|
|
iguana_recvalloc(coin,coin->longestchain + 100000); |
|
|
} |
|
|
} |
|
|
iguana_coinflush(coin); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if ( flag == 0 ) |
|
|
if ( flag == 0 ) |
|
|