diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 872590841..c1dcd4287 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -906,7 +906,7 @@ void komodo_iteration(char *symbol) void basilisks_loop(void *arg) { static uint32_t counter; - struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t i,iter; double startmilli,endmilli; struct dpow_info *dp; + struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct dpow_info *dp; iter = 0; relay = iguana_coinfind("RELAY"); printf("start basilisk loop\n"); @@ -923,17 +923,16 @@ void basilisks_loop(void *arg) basilisk_ping_send(myinfo,relay); counter++; if ( (counter % 10) == 0 && myinfo->numdpows == 1 ) + { iguana_dPoWupdate(myinfo,&myinfo->DPOWS[0]); + endmilli = startmilli + 500; + } else if ( myinfo->numdpows > 1 ) { - for (i=0; inumdpows; i++) - { - dp = &myinfo->DPOWS[i];//counter % myinfo->numdpows]; - iguana_dPoWupdate(myinfo,dp); - } + dp = &myinfo->DPOWS[counter % myinfo->numdpows]; + iguana_dPoWupdate(myinfo,dp); + endmilli = startmilli + 200; } - endmilli = startmilli + 200; - continue; } else if ( myinfo->IAMLP != 0 ) endmilli = startmilli + 1000; diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index 9bce896ad..658be29d1 100755 --- a/crypto777/bitcoind_RPC.c +++ b/crypto777/bitcoind_RPC.c @@ -135,7 +135,7 @@ char *bitcoind_RPC(char **retstrp,char *debugstr,char *url,char *userpass,char * else specialcase = 0; if ( url[0] == 0 ) strcpy(url,"http://127.0.0.1:7776"); - //if ( specialcase != 0 && 0 ) + if ( specialcase != 0 && 0 ) printf("<<<<<<<<<<< bitcoind_RPC: debug.(%s) url.(%s) command.(%s) params.(%s)\n",debugstr,url,command,params); try_again: if ( retstrp != 0 ) diff --git a/iguana/iguana_exchanges.c b/iguana/iguana_exchanges.c index 1b8b6c859..dadfd3b59 100755 --- a/iguana/iguana_exchanges.c +++ b/iguana/iguana_exchanges.c @@ -1124,7 +1124,7 @@ void exchanges777_init(struct supernet_info *myinfo,cJSON *exchanges,int32_t sle { if ( strcmp(Exchange_funcs[i]->name,"PAX") == 0 || strcmp(Exchange_funcs[i]->name,"truefx") == 0 || strcmp(Exchange_funcs[i]->name,"fxcm") == 0 || strcmp(Exchange_funcs[i]->name,"instaforex") == 0 ) { - exchange->pollgap = 10; + exchange->pollgap = 60; continue; } if ( ((exchange= exchanges777_find(Exchange_funcs[i]->name)) == 0 && (exchange= exchange_create(Exchange_funcs[i]->name,0)) != 0) || (exchange= exchanges777_info(Exchange_funcs[i]->name,sleepflag,argjson,0)) != 0 )