Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
97916fdb5d
  1. 4
      iguana/iguana_unspents.c

4
iguana/iguana_unspents.c

@ -1002,7 +1002,7 @@ int32_t iguana_RTutxo(struct iguana_info *coin,struct iguana_bundle *bp,struct i
if ( (++num % 100000) == 0 ) if ( (++num % 100000) == 0 )
printf("externalspents.[%d] ave %.2f micros, total %.2f seconds\n",num,(totalmillis*1000.)/num,totalmillis/1000.); printf("externalspents.[%d] ave %.2f micros, total %.2f seconds\n",num,(totalmillis*1000.)/num,totalmillis/1000.);
rdata = spentbp->ramchain.H.data; rdata = spentbp->ramchain.H.data;
if ( coin->PREFETCHLAG != 0 && now >= spentbp->lastprefetch+coin->PREFETCHLAG ) if ( 0 && coin->PREFETCHLAG != 0 && now >= spentbp->lastprefetch+coin->PREFETCHLAG )
{ {
printf("RT prefetch[%d] from.[%d] lag.%d bundlei.%d numspends.%d of %d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch,bundlei,spendind,RTramchain->H.spendind); printf("RT prefetch[%d] from.[%d] lag.%d bundlei.%d numspends.%d of %d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch,bundlei,spendind,RTramchain->H.spendind);
iguana_ramchain_prefetch(coin,&spentbp->ramchain); iguana_ramchain_prefetch(coin,&spentbp->ramchain);
@ -1508,6 +1508,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu
coin->started = 0; coin->started = 0;
for (i=0; i<IGUANA_MAXPEERS; i++) for (i=0; i<IGUANA_MAXPEERS; i++)
coin->peers.active[i].dead = (uint32_t)time(NULL); coin->peers.active[i].dead = (uint32_t)time(NULL);
#ifdef __linux__ || __APPLE__
sprintf(cmd,"DB/%s %s.%d -comp xz",coin->symbol,coin->symbol,coin->balanceswritten); sprintf(cmd,"DB/%s %s.%d -comp xz",coin->symbol,coin->symbol,coin->balanceswritten);
if ( system(cmd) != 0 ) if ( system(cmd) != 0 )
printf("error system(%s)\n",cmd); printf("error system(%s)\n",cmd);
@ -1523,6 +1524,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu
printf("error system(%s)\n",cmd); printf("error system(%s)\n",cmd);
} }
} }
#endif
for (i=0; i<30; i++) for (i=0; i<30; i++)
{ {
printf("need to exit, please restart after shutdown in %d seconds, or just ctrl-C\n",100-i); printf("need to exit, please restart after shutdown in %d seconds, or just ctrl-C\n",100-i);

Loading…
Cancel
Save