Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
cecf211173
  1. 11
      iguana/iguana777.c
  2. 4
      iguana/iguana_spendvectors.c

11
iguana/iguana777.c

@ -476,13 +476,22 @@ void iguana_update_balances(struct iguana_info *coin)
} }
} else printf("null bp.[%d]\n",hdrsi); } else printf("null bp.[%d]\n",hdrsi);
} }
}
//if ( max != coin->origbalanceswritten ) //if ( max != coin->origbalanceswritten )
{ {
coin->balanceflush = max+1; coin->balanceflush = max+1;
while ( coin->balanceflush != 0 ) while ( coin->balanceflush != 0 )
sleep(3); sleep(3);
}// else printf("skip flush when max.%d and orig.%d\n",max,coin->origbalanceswritten); }// else printf("skip flush when max.%d and orig.%d\n",max,coin->origbalanceswritten);
}
else
{
for (i=0; i<max; i++)
if ( (bp= coin->bundles[i]) != 0 && bp != coin->current )
{
iguana_volatilespurge(coin,&bp->ramchain);
iguana_volatilesmap(coin,&bp->ramchain);
}
}
} }
int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int32_t helperid,int32_t convertflag) int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int32_t helperid,int32_t convertflag)

4
iguana/iguana_spendvectors.c

@ -913,8 +913,8 @@ int32_t iguana_balanceflush(struct supernet_info *myinfo,struct iguana_info *coi
}*/ }*/
if ( (hdrsi % 100) == 0 ) if ( (hdrsi % 100) == 0 )
printf("%s -> %s\n",fname,destfname); printf("%s -> %s\n",fname,destfname);
OS_removefile(fname,0); //OS_removefile(fname,0);
OS_removefile(fname2,0); //OS_removefile(fname2,0);
} }
if ( bp->ramchain.allocatedA2 == 0 || bp->ramchain.allocatedU2 == 0 ) if ( bp->ramchain.allocatedA2 == 0 || bp->ramchain.allocatedU2 == 0 )
{ {

Loading…
Cancel
Save