From 2c0f4ffd9d865f31fd3cb330603a8a8a44b9961d Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 19:31:17 -0300 Subject: [PATCH] test --- iguana/iguana_msg.c | 2 +- iguana/iguana_peers.c | 2 +- iguana/iguana_recv.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 44c4bfe1c..f17d5a571 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -438,7 +438,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc strcpy(addr->lastcommand,H->command); } retval = 0; - usleep(100); + usleep(1000); //printf("iguana_msgparser %s parse.(%s)\n",addr->ipaddr,H->command); if ( strcmp(H->command,"SuperNET") == 0 ) { diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index c39923537..b59dce86a 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -992,7 +992,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) } } } - if ( 0 && flag == 0 ) + if ( flag == 0 ) { if ( run++ > 1000 ) { diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 9d7e2c1ab..25bfcb761 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -463,7 +463,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana struct iguana_bundle *prevbp=0,*bp=0; int32_t prevbundlei=-2,bundlei = -2; struct iguana_block *prevblock,*block; bp = iguana_bundleset(coin,&block,&bundlei,origblock); - usleep(100); + usleep(1000); //static int total; char str[65]; printf("RECV %s [%d:%d] block.%08x | %d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,total++); iguana_bundlefind(coin,&prevbp,&prevbundlei,origblock->RO.prev_block); if ( prevbp != 0 && prevbundlei >= 0 && (prevblock= iguana_blockfind(coin,origblock->RO.prev_block)) != 0 )