From 81df1f7cecfc282d0484aac5ba4928eeb4d9511e Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Mar 2016 01:16:04 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 068cd46bc..6d54c1b94 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -474,9 +474,12 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) else { if ( firstgap == 0 ) - firstgap = lastpending = bp; + firstgap = bp; if ( ++pending == coin->MAXBUNDLES ) + { lastpending = bp; + printf("SET MAXBUNDLES.%d pend.%d\n",bp->hdrsi,pending); + } if ( bp->emitfinish == 0 ) { spaceused += bp->estsize; @@ -515,6 +518,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) coin->current = firstgap; if ( lastpending != 0 ) coin->lastpending = lastpending; + else coin->lastpending = coin->bundles[coin->bundlescount - 1]; coin->numsaved = numsaved; coin->spaceused = spaceused; char str4[65];