diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index c7c4e905c..7c885d4e7 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1550,7 +1550,7 @@ struct iguana_ramchain *iguana_ramchain_map(struct iguana_info *coin,char *fname { bp->balancefinish = (uint32_t)time(NULL); //printf("found balances for %d\n",bp->hdrsi); - } else printf("error with extras\n"); + } //else printf("error with extras\n"); } } if ( B != 0 && bp != 0 ) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index a47308227..bb1f1740e 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -191,7 +191,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i printf("got block that doesnt validate? %s\n",bits256_str(str,origtxdata->block.RO.hash2)); return; } - else if ( 1 && coin->enableCACHE != 0 ) + else if ( 0 && coin->enableCACHE != 0 ) printf("cache.%d validated.(%s)\n",coin->enableCACHE,bits256_str(str,origtxdata->block.RO.hash2)); copyflag = coin->enableCACHE; bp = 0, bundlei = -2; diff --git a/iguana/main.c b/iguana/main.c index 7450a3fb3..4e40734e5 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -471,7 +471,7 @@ void mainloop(struct supernet_info *myinfo) printf("alloc A2.[%d]\n",bp->hdrsi); bp->ramchain.A = calloc(sizeof(*bp->ramchain.A),bp->ramchain.H.data->numpkinds + 16); } - iguana_balancecalc(ptr->coin,bp,bp->hdrsi >= coin->balanceswritten); + iguana_balancecalc(ptr->coin,bp,bp->hdrsi >= coin->longestchain/coin->chain->bundlesize && bp->hdrsi >= coin->balanceswritten); bp->queued = 0; if ( bp->hdrsi == coin->longestchain/coin->chain->bundlesize-1 ) {