Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
f21ab8490a
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_ramchain.c

2
iguana/iguana777.c

@ -757,7 +757,7 @@ void iguana_coinloop(void *arg)
coin->idletime = (uint32_t)time(NULL);
}
}
//printf("%s flag.%d isRT.%d polltimeout.%d numranked.%d\n",coin->symbol,flag,coin->isRT,coin->polltimeout,coin->peers->numranked);
printf("%s flag.%d isRT.%d polltimeout.%d numranked.%d\n",coin->symbol,flag,coin->isRT,coin->polltimeout,coin->peers->numranked);
if ( flag == 0 && coin->isRT == 0 && coin->peers != 0 )
usleep(coin->polltimeout*1000 + (coin->peers->numranked == 0)*1000000);
else if ( coin->current != 0 && coin->current->hdrsi == coin->longestchain/coin->chain->bundlesize )

2
iguana/iguana_bundles.c

@ -1099,7 +1099,7 @@ int32_t iguana_bundleiters(struct supernet_info *myinfo,struct iguana_info *coin
{
if ( coin->virtualchain != 0 || iguana_bundlefinalize(myinfo,coin,bp,mem,memB) > 0 )
{
printf("bundlefinalized done.[%d]\n",bp->hdrsi);
//printf("bundlefinalized done.[%d]\n",bp->hdrsi);
return(0);
}
retval = 1;

2
iguana/iguana_ramchain.c

@ -2612,7 +2612,7 @@ int32_t iguana_bundlesaveHT(struct supernet_info *myinfo,struct iguana_info *coi
if ( retval == 0 )
{
//char dirname[1024];
printf("delete %d files hdrs.[%d] retval.%d bp_n.%d\n",num,bp->hdrsi,retval,bp_n);
//printf("delete %d files hdrs.[%d] retval.%d bp_n.%d\n",num,bp->hdrsi,retval,bp_n);
if ( iguana_bundleload(coin,&newchain,bp,0) == 0 )
retval = -1;
else if ( bp_n == bp->n && bp->n == coin->chain->bundlesize && bp->hdrsi < coin->bundlescount-3 )

Loading…
Cancel
Save