|
|
@ -514,7 +514,9 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl |
|
|
|
void iguana_checklongestchain(struct iguana_info *coin,struct iguana_bundle *bp,int32_t num) |
|
|
|
{ |
|
|
|
int32_t i; struct iguana_peer *addr; |
|
|
|
if ( num > 10 && num < bp->n && coin->longestchain > bp->bundleheight+num+3 ) |
|
|
|
if ( num > 10 && num < bp->n ) |
|
|
|
{ |
|
|
|
if ( coin->longestchain > bp->bundleheight+num+3 ) |
|
|
|
{ |
|
|
|
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 ) |
|
|
@ -531,6 +533,12 @@ void iguana_checklongestchain(struct iguana_info *coin,struct iguana_bundle *bp, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else if ( coin->longestchain_strange > 0 ) |
|
|
|
{ |
|
|
|
printf("not 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); |
|
|
|
coin->longestchain_strange--; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct iguana_bundlereq *req,struct iguana_block *blocks,int32_t n,int32_t *newhwmp) |
|
|
|