Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5308392e7e
  1. 4
      iguana/iguana_bundles.c
  2. 4
      iguana/iguana_recv.c

4
iguana/iguana_bundles.c

@ -650,7 +650,9 @@ int32_t iguana_blast(struct iguana_info *coin,struct iguana_peer *addr)
if ( bits256_nonz(hash2) != 0 )
{
n++;
iguana_sendblockreqPT(coin,addr,bp,i,hash2,0);
bp->issued[i] = 0;
iguana_blockQ("blast",coin,bp,i,hash2,1);
//iguana_sendblockreqPT(coin,addr,bp,i,hash2,0);
}
}
if ( n > m )

4
iguana/iguana_recv.c

@ -334,8 +334,8 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
if ( bw > coin->maxbandwidth )
coin->maxbandwidth = bw;
}
coin->bandwidth = bw;
char str[65],str2[65],str3[65],str4[65]; printf("%s BLOCKS.%llu RECV %s ave %.1f | dup.%d %s after.%d %s %s/sec %.2f%%\n",coin->symbol,(long long)sum2,mbstr(str,sum),(double)sum/(sum2!=0?sum2:1),numDuplicates,mbstr(str2,sizeDuplicates),numAfteremit,mbstr(str3,sizeAfteremit),mbstr(str4,bw),coin->maxbandwidth!=0.?100.*coin->bandwidth/coin->maxbandwidth:0.);
dxblend(&coin->bandwidth,bw,.9);
char str[65],str2[65],str3[65],str4[65]; printf("%s BLOCKS.%llu RECV %s ave %.1f | dup.%d %s after.%d %s %s/sec %.2f%% %s\n",coin->symbol,(long long)sum2,mbstr(str,sum),(double)sum/(sum2!=0?sum2:1),numDuplicates,mbstr(str2,sizeDuplicates),numAfteremit,mbstr(str3,sizeAfteremit),mbstr(str4,bw),coin->maxbandwidth!=0.?100.*coin->bandwidth/coin->maxbandwidth:0.,coin->maxbandwidth>4*coin->bandwidth?"SLOW":"");
last = now;
}
if ( coin->bandwidth < 0.25*coin->maxbandwidth )

Loading…
Cancel
Save