diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index f7fe68636..5adabd3c9 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -970,7 +970,7 @@ double iguana_bundlemissings(struct iguana_info *coin,double mult,struct iguana_ printf("priority.%d [%d] dist.%d durations %.2f vs %.2f counts[%d %d] \n",priority,bp->hdrsi,dist,aveduration,aveduplicates,(int32_t)bp->durationscount,bp->duplicatescount); } if ( aveduration != 0. ) - lag = ((bp == coin->current) ? 2 : 7) * aveduration + 3; + lag = ((bp == coin->current) ? .5 : 5) * aveduration + 3; if ( bp->numissued < bp->n ) max = bp->numissued; else max = bp->origmissings; diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 917941f3c..6b55136ea 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1392,8 +1392,8 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) flag++; } //else printf("skip hdrreq.%s m.%d z.%d bp.%p longest.%d queued.%d\n",hashstr,m,z,bp,bp->coin->longestchain,bp->queued); } - //free_queueitem(hashstr); - //return(flag); + free_queueitem(hashstr); + return(flag); } else printf("datalen.%d from gethdrs\n",datalen); free_queueitem(hashstr); hashstr = 0; diff --git a/iguana/main.c b/iguana/main.c index 2140e1d4a..10501a273 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1220,7 +1220,7 @@ void iguana_main(void *arg) if ( 1 ) { sleep(1); - if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"VALIDATE\":1,\"prefetchlag\":13,\"startpend\":128,\"endpend\":128,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":0,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":8,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) + if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"VALIDATE\":1,\"prefetchlag\":13,\"startpend\":2048,\"endpend\":128,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":0,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":8,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) { free(str); if ( 0 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1024,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1}"),0,myinfo->rpcport)) != 0 )