Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
217d3c5c64
  1. 6
      iguana/iguana_realtime.c

6
iguana/iguana_realtime.c

@ -214,7 +214,7 @@ 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; struct iguana_block *block=0; struct iguana_blockRO *B; struct iguana_ramchain *dest=0,blockR;
if ( coin->peers == 0 && coin->virtualchain == 0 ) if ( coin->peers == 0 && coin->virtualchain == 0 )
return(0); return(0);
offset = 0;//(strcmp("BTCD",coin->symbol) == 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 ) 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]; block = coin->current->blocks[coin->current->n - 1];
@ -356,8 +356,8 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
{ {
if ( coin->virtualchain == 0 ) if ( coin->virtualchain == 0 )
{ {
printf("%s skip RT.(%d %d %d %d %d %d %d %u)\n",coin->symbol,coin->RTdatabad,bp->hdrsi,coin->longestchain/coin->chain->bundlesize,coin->balanceswritten,coin->RTheight,bp->bundleheight,coin->blocks.hwmchain.height,bp->lastRT); //printf("%s skip RT.(%d %d %d %d %d %d %d %u)\n",coin->symbol,coin->RTdatabad,bp->hdrsi,coin->longestchain/coin->chain->bundlesize,coin->balanceswritten,coin->RTheight,bp->bundleheight,coin->blocks.hwmchain.height,bp->lastRT);
sleep(1); //sleep(1);
} }
} }
n = 0; n = 0;

Loading…
Cancel
Save