Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
163dd417f3
  1. 6
      iguana/iguana777.c
  2. 3
      iguana/main.c

6
iguana/iguana777.c

@ -451,6 +451,8 @@ void iguana_update_balances(struct iguana_info *coin)
int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int32_t helperid,int32_t convertflag)
{
int32_t hdrsi,n,i,max,incr,num = 0; struct iguana_bundle *bp;
if ( helperid != 0 )
return(0);
if ( coin->spendvectorsaved > 1 )
{
printf("skip utxogen as spendvectorsaved.%u\n",coin->spendvectorsaved);
@ -470,7 +472,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int
}
while ( (n= iguana_utxofinished(coin)) < max )
{
//printf("helperid.%d utxofinished.%d vs %d\n",helperid,n,max);
printf("helperid.%d utxofinished.%d vs %d\n",helperid,n,max);
sleep(IGUANA_NUMHELPERS+3);
}
if ( helperid < incr )
@ -491,7 +493,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int
for (i=0; i<max; i++)
if ( (bp= coin->bundles[i]) != 0 )
{
//iguana_volatilespurge(coin,&bp->ramchain);
iguana_volatilespurge(coin,&bp->ramchain);
iguana_volatilesmap(coin,&bp->ramchain);
}
}

3
iguana/main.c

@ -424,7 +424,8 @@ void mainloop(struct supernet_info *myinfo)
if ( coin->PREFETCHLAG >= 0 && coin->fastfind == 0 )
{
for (j=0; j<n; j++)
iguana_alloctxbits(coin,&coin->bundles[j]->ramchain);
if ( coin->bundles[j] != 0 )
iguana_alloctxbits(coin,&coin->bundles[j]->ramchain);
sleep(3);
}
if ( iguana_validated(coin) < n || iguana_utxofinished(coin) < n || iguana_balancefinished(coin) < n )

Loading…
Cancel
Save