Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e40cde6bc5
  1. 6
      iguana/iguana_blocks.c
  2. 3
      iguana/iguana_recv.c

6
iguana/iguana_blocks.c

@ -58,7 +58,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin
while ( depth != 0 )
{
sleep(1);
printf(">>>>>>>>>> OK only if rare %s blockhashset.%d depth.%d\n",debugstr,height,depth);
printf("%s >>>>>>>>>> OK only if rare %s blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,depth);
//fprintf(stderr,">>>>>>>>>> OK only if rare %s blockhashset.%d depth.%d\n",debugstr,height,depth);
//printf("%d\n",1/(1 - depth/depth));
}
@ -70,7 +70,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin
while ( depth != 0 )
{
sleep(1);
printf(">>>>>>>>>> OK only if rare %s match blockhashset.%d depth.%d\n",debugstr,height,depth);
printf(" %s >>>>>>>>>> OK only if rare %s match blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,depth);
//fprintf(stderr,">>>>>>>>>> OK only if rare%s match blockhashset.%d depth.%d\n",debugstr,height,depth);
//printf("%d\n",1/(1 - depth/depth));
}
@ -106,7 +106,7 @@ struct iguana_block *iguana_blockhashset(char *debugstr,struct iguana_info *coin
while ( depth != 0 )
{
sleep(1);
printf(">>>>>>>>>> OK only if rare %s create blockhashset.%d depth.%d\n",debugstr,height,depth);
printf("%s >>>>>>>>>> OK only if rare %s create blockhashset.%d depth.%d\n",coin->symbol,debugstr,height,depth);
//fprintf(stderr,">>>>>>>>>> OK only if rare%s create blockhashset.%d depth.%d\n",debugstr,height,depth);
//printf("%d\n",1/(1 - depth/depth));
}

3
iguana/iguana_recv.c

@ -994,7 +994,8 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
n = 1;
while ( (block= block->hh.next) != 0 && _iguana_chainlink(coin,block) != 0 )
n++;
printf("found mainchain linked.%d\n",n);
if ( n > 2 )
printf("found mainchain linked.%d ht.%d\n",n,next->height);
break;
}
next = block;

Loading…
Cancel
Save