Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
be1ce55bb7
  1. 4
      iguana/iguana_recv.c

4
iguana/iguana_recv.c

@ -960,7 +960,9 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
else threshold = coin->avetime;
threshold *= 100. * sqrt(threshold) * .000777;*/
double threshold,lag = OS_milliseconds() - coin->backstopmillis;
threshold = 300;
if ( coin->blocks.hwmchain.height >= coin->longestchain-1 )
threshold = 10000;
else threshold = 300;
if ( coin->blocks.hwmchain.height < coin->longestchain && (coin->backstop != coin->blocks.hwmchain.height+1 || lag > threshold) )
{
coin->backstop = coin->blocks.hwmchain.height+1;

Loading…
Cancel
Save