Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
12b069cb8b
  1. 2
      iguana/iguana_bundles.c
  2. 6
      iguana/iguana_realtime.c

2
iguana/iguana_bundles.c

@ -1545,7 +1545,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
fprintf(logfp,"%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
fflush(logfp);
}
printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
//printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
strcpy(coin->lastdispstr,str);
if ( (rand() % 100) == 0 )
myallocated(0,0);

6
iguana/iguana_realtime.c

@ -766,11 +766,11 @@ void iguana_RTnewblock(struct supernet_info *myinfo,struct iguana_info *coin,str
coin->RTreset_needed = 0;
}
iguana_RTbalance_verify("start iterate",coin);
if ( 0 && strcmp(coin->symbol,"BTC") != 0 && strcmp(coin->symbol,"LTC") != 0 )
if ( strcmp(coin->symbol,"BTC") != 0 && strcmp(coin->symbol,"LTC") != 0 )
{
if ( block->height < coin->firstRTheight+3 )
if ( block->height < coin->firstRTheight+1 )
return;
if ( (block= iguana_blockfind("RTnew",coin,iguana_blockhash(coin,block->height-3))) == 0 )
if ( (block= iguana_blockfind("RTnew",coin,iguana_blockhash(coin,block->height-1))) == 0 )
return;
}
if ( block->height < coin->firstRTheight || block->height >= coin->firstRTheight+sizeof(coin->RTblocks)/sizeof(*coin->RTblocks) )

Loading…
Cancel
Save