Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5d5ebbb269
  1. 5
      iguana/iguana_unspents.c

5
iguana/iguana_unspents.c

@ -271,7 +271,7 @@ int32_t iguana_volatileupdate(struct iguana_info *coin,int32_t incremental,struc
if ( spentchain->allocatedA == 0 || spentchain->allocatedU == 0 ) if ( spentchain->allocatedA == 0 || spentchain->allocatedU == 0 )
{ {
iguana_volatilesalloc(coin,spentchain); iguana_volatilesalloc(coin,spentchain);
printf("volatilesalloc.[%d] ",spent_hdrsi); fprintf(stderr,"volatilesalloc.[%d] ",spent_hdrsi);
} }
if ( incremental == 0 ) if ( incremental == 0 )
{ {
@ -1103,7 +1103,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
} }
//if ( coin->PREFETCHLAG > 0 ) //if ( coin->PREFETCHLAG > 0 )
iguana_ramchain_prefetch(coin,ramchain,0); iguana_ramchain_prefetch(coin,ramchain,0);
printf("BALANCEGEN.[%d] ",bp->hdrsi); fprintf(stderr,"BALANCEGEN.[%d] ",bp->hdrsi);
txidind = spendind = rdata->firsti; txidind = spendind = rdata->firsti;
for (i=0; i<bp->n; i++) for (i=0; i<bp->n; i++)
{ {
@ -1749,7 +1749,6 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
double startmillis0; static double totalmillis0; static int32_t num0; double startmillis0; static double totalmillis0; static int32_t num0;
struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int32_t bundlei,i,n,flag=0; bits256 hash2; struct iguana_peer *addr; struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int32_t bundlei,i,n,flag=0; bits256 hash2; struct iguana_peer *addr;
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;
return(0);
//starti = coin->RTheight % coin->chain->bundlesize; //starti = coin->RTheight % coin->chain->bundlesize;
if ( (bp= coin->current) != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && ((coin->RTheight <= coin->blocks.hwmchain.height && time(NULL) > bp->lastRT) || time(NULL) > bp->lastRT+10) ) if ( (bp= coin->current) != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && ((coin->RTheight <= coin->blocks.hwmchain.height && time(NULL) > bp->lastRT) || time(NULL) > bp->lastRT+10) )
{ {

Loading…
Cancel
Save