From edbc28c14a590a65e4c07999ef598b063b5298d9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Aug 2016 14:09:15 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_blocks.c | 6 +++--- iguana/iguana_bundles.c | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index ed1d74e1a..74cedfa5b 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -621,7 +621,7 @@ void iguana_helper(void *arg) else if ( allcurrent > 0 ) { //printf("bundlesQ allcurrent\n"); - usleep(polltimeout * 100000); + usleep(polltimeout * 10000); } else usleep(polltimeout * 5000); } } diff --git a/iguana/iguana_blocks.c b/iguana/iguana_blocks.c index 2af28a322..a4eb964e5 100755 --- a/iguana/iguana_blocks.c +++ b/iguana/iguana_blocks.c @@ -183,7 +183,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin }*/ while ( coin->blockdepth > 0 ) { - sleep(1); + usleep(100000); if ( coin->blockdepth > 0 ) printf("A %s >>>>>>>>>> OK only if rare %s blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,coin->blockdepth); //fprintf(stderr,">>>>>>>>>> OK only if rare %s blockhashset.%d depth.%d\n",debugstr,height,depth); @@ -197,7 +197,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin coin->blockdepth--; while ( coin->blockdepth > 0 ) { - sleep(1); + usleep(100000); if ( coin->blockdepth > 0 ) printf("B %s >>>>>>>>>> OK only if rare %s match blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,coin->blockdepth); //fprintf(stderr,">>>>>>>>>> OK only if rare%s match blockhashset.%d depth.%d\n",debugstr,height,depth); @@ -239,7 +239,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin coin->blockdepth--; while ( coin->blockdepth > 0 ) { - sleep(1); + usleep(100000); if ( coin->blockdepth > 0 ) printf("C %s >>>>>>>>>> OK only if rare %s create blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,coin->blockdepth); //fprintf(stderr,">>>>>>>>>> OK only if rare%s create blockhashset.%d depth.%d\n",debugstr,height,depth); diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 93cddc817..e195b22ff 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -309,9 +309,6 @@ int32_t iguana_bundlehash2add(struct iguana_info *coin,struct iguana_block **blo { printf("bundlehash2add err.%d\n",err); return(0); - //while ( 1 ) - // sleep(1); - //exit(-1); } return(-err); }