From fd0a84fa88ddd914ba311161ad521a26490ee2a8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 13:29:08 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 77c44b207..5e88236bc 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -52,7 +52,7 @@ int32_t iguana_sendblockreq(struct iguana_info *coin,struct iguana_peer *addr,st char hexstr[65]; init_hexbytes_noT(hexstr,hash2.bytes,sizeof(hash2)); if ( addr->msgcounts.verack == 0 ) { - printf("iguana_sendblockreq %s hasn't verack'ed yet\n"); + printf("iguana_sendblockreq %s hasn't verack'ed yet\n",addr->ipaddr); return(-1); } if ( (len= iguana_getdata(coin,serialized,MSG_BLOCK,hexstr)) > 0 ) @@ -685,9 +685,9 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) //if ( addr->pendblocks >= limit ) // printf("%s %d overlimit.%d\n",addr->ipaddr,addr->pendblocks,limit); req = queue_dequeue(&coin->priorityQ,0); - if ( addr->msgcounts.verack > 0 && coin->bundlescount > 0 && req == 0 )//addr->pendblocks < limit )//&& now > addr->lastpoll ) + if ( addr->msgcounts.verack > 0 && coin->bundlescount > 0 && req == 0 && addr->pendblocks < limit )//&& now > addr->lastpoll ) { - if ( 1 )//strcmp("BTC",coin->symbol) != 0 ) + if ( 0 )//strcmp("BTC",coin->symbol) != 0 ) { int32_t bundlei; incr = coin->peers.numranked == 0 ? coin->MAXPEERS : coin->peers.numranked;