Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6316b07a87
  1. 2
      iguana/iguana_ramchain.c
  2. 2
      iguana/iguana_recv.c

2
iguana/iguana_ramchain.c

@ -2127,7 +2127,7 @@ long iguana_ramchain_data(struct iguana_info *coin,struct iguana_peer *addr,stru
{
static int32_t numredundant; static double redundantsize; char str[65],str2[65];
numredundant++, redundantsize += recvlen;
printf("ramchaindata have %d:%d at %d | %d blocks %s redundant xfers total %s\n",bp->hdrsi,bundlei,block->fpos,numredundant,mbstr(str,redundantsize),mbstr(str2,totalrecv));
printf("ramchaindata have %d:%d at %d | %d blocks %s redundant xfers total %s %.1f%% wasted\n",bp->hdrsi,bundlei,block->fpos,numredundant,mbstr(str,redundantsize),mbstr(str2,totalrecv),100.*redundantsize/totalrecv);
return(block->fpos);
}
fpos = -1;

2
iguana/iguana_recv.c

@ -939,7 +939,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr)
return(0);
}
priority = 1;
if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 && (rand() % 10) == 0 )
if ( (req= queue_dequeue(&coin->priorityQ,0)) == 0 && (rand() % 50) == 0 )
{
if ( 1 || (rand() & 1) == 0 )
flag = iguana_neargap(coin,addr);

Loading…
Cancel
Save