Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
dae9750b71
  1. 6
      iguana/iguana777.c
  2. 2
      iguana/iguana_tx.c

6
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); //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 ) 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 ) 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); 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 ) if ( coin->MAXMEM == 0 )
coin->MAXMEM = IGUANA_DEFAULTRAM; coin->MAXMEM = IGUANA_DEFAULTRAM;
coin->MAXMEM *= (1024L * 1024 * 1024); 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 ) if ( jobj(json,"cache") != 0 )
coin->enableCACHE = juint(json,"cache"); coin->enableCACHE = juint(json,"cache");
if ( (coin->polltimeout= juint(json,"poll")) <= 0 ) if ( (coin->polltimeout= juint(json,"poll")) <= 0 )

2
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 ) 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; //rdata = coin->RTramchain.H.data;
return(-1); return(-1);
} }

Loading…
Cancel
Save