|
|
@ -339,7 +339,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i |
|
|
|
received[addr->addrind] += recvlen; |
|
|
|
count[addr->addrind]++; |
|
|
|
now = (uint32_t)time(NULL); |
|
|
|
if ( ((rand() % 1000) == 0 && now > last+10) || now > last+60 ) |
|
|
|
if ( ((rand() % 1000) == 0 && now > last+10) || now > last+600 ) |
|
|
|
{ |
|
|
|
int64_t sum2 = 0,sum = 0,diffr,diff; double bw = 0.; |
|
|
|
for (i=0; i<sizeof(received)/sizeof(*received); i++) |
|
|
@ -764,7 +764,7 @@ void iguana_checklongestchain(struct iguana_info *coin,struct iguana_bundle *bp, |
|
|
|
{ |
|
|
|
if ( coin->longestchain > bp->bundleheight+num+10*coin->chain->minconfirms ) |
|
|
|
{ |
|
|
|
printf("strange.%d suspicious longestchain.%d vs [%d:%d] %d bp->n %d\n",coin->longestchain_strange,coin->longestchain,bp->hdrsi,num,bp->bundleheight+num,bp->n); |
|
|
|
//printf("strange.%d suspicious longestchain.%d vs [%d:%d] %d bp->n %d\n",coin->longestchain_strange,coin->longestchain,bp->hdrsi,num,bp->bundleheight+num,bp->n);
|
|
|
|
if ( coin->longestchain_strange++ > 10 ) |
|
|
|
{ |
|
|
|
coin->badlongestchain = coin->longestchain; |
|
|
|