Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
c4388d6def
  1. 4
      iguana/iguana_realtime.c

4
iguana/iguana_realtime.c

@ -210,12 +210,12 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
struct iguana_block *block=0; struct iguana_blockRO *B; struct iguana_ramchain *dest=0,blockR;
if ( coin->peers == 0 && coin->virtualchain == 0 )
return(0);
if ( coin->RTheight > coin->blocks.hwmchain.height )
offset = (strcmp("BTC",coin->symbol) != 0);
if ( coin->RTheight-offset > coin->blocks.hwmchain.height )
{
printf("inversion RT %d < %d\n",coin->RTheight,coin->blocks.hwmchain.height);
coin->RTheight = 0;
}
offset = (strcmp("BTC",coin->symbol) != 0);
if ( coin->current != 0 && (coin->blocks.hwmchain.height % coin->chain->bundlesize) == coin->chain->bundlesize-1 && coin->blocks.hwmchain.height/coin->chain->bundlesize == coin->longestchain/coin->chain->bundlesize )
{
block = coin->current->blocks[coin->current->n - 1];

Loading…
Cancel
Save