diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index a1688db67..156e4eafa 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -946,9 +946,9 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) return(0); } priority = 1; - if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 && (rand() % 10) == 0 ) + if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 ) { - if ( 1 || (rand() & 1) == 0 ) + if ( (rand() & 1) == 0 ) flag = iguana_neargap(coin,addr); else if ( (bp= addr->bp) != 0 && bp->rank != 0 && addr->pendblocks < limit ) { diff --git a/iguana/main.c b/iguana/main.c index d01a4329d..313c1fd2c 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1119,7 +1119,7 @@ void iguana_main(void *arg) sleep(1); char *str; //iguana_launchcoin(MYINFO.rpcsymbol,cJSON_Parse("{}")); - if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":1}"),0)) != 0 ) + if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":1,\"poll\":1}"),0)) != 0 ) { free(str); if ( 0 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":128,\"newcoin\":\"BTCD\",\"active\":1}"),0)) != 0 )