diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 3d0cab624..a4b07ecaa 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -768,9 +768,9 @@ void iguana_coinloop(void *arg) } //printf("%s flag.%d isRT.%d polltimeout.%d numranked.%d\n",coin->symbol,flag,coin->isRT,coin->polltimeout,coin->peers->numranked); if ( flag == 0 && coin->isRT == 0 && coin->peers != 0 ) - usleep(coin->polltimeout*1000 + (coin->peers->numranked == 0)*1000000); + usleep(coin->polltimeout*5000 + (coin->peers->numranked == 0)*1000000); else if ( coin->current != 0 && coin->current->hdrsi == coin->longestchain/coin->chain->bundlesize ) - usleep(coin->polltimeout*1000 + 90000 + (coin->peers->numranked == 0)*1000000); + usleep(coin->polltimeout*5000 + 90000 + (coin->peers->numranked == 0)*1000000); else usleep(coin->polltimeout*1000); } } @@ -867,7 +867,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers, if ( coin->MAXMEM == 0 ) coin->MAXMEM = IGUANA_DEFAULTRAM; coin->MAXMEM *= (1024L * 1024 * 1024); - coin->enableCACHE = 0;//(strcmp("BTCD",coin->symbol) == 0); + coin->enableCACHE = (strcmp("BTCD",coin->symbol) == 0); if ( jobj(json,"cache") != 0 ) coin->enableCACHE = juint(json,"cache"); if ( (coin->polltimeout= juint(json,"poll")) <= 0 ) diff --git a/iguana/iguana_tx.c b/iguana/iguana_tx.c index 190c3506a..02922e47c 100755 --- a/iguana/iguana_tx.c +++ b/iguana/iguana_tx.c @@ -241,7 +241,7 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int { if ( (rdata= bp->ramchain.H.data) == 0 )//&& bp == coin->current ) { - printf("no ramchain data [%d]\n",bp->hdrsi); + printf("iguana_peerblockrequest no ramchain data [%d] use RTcache\n",bp->hdrsi); //rdata = coin->RTramchain.H.data; return(-1); }