Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f6765a1260
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_ramchain.c
  3. 9
      iguana/main.c

2
iguana/iguana777.c

@ -400,7 +400,7 @@ void iguana_coinflush(struct iguana_info *coin)
int32_t hdrsi; struct iguana_bundle *bp; char fname[1024],fname2[1024]; FILE *fp,*fp2=0;
for (hdrsi=0; hdrsi<coin->bundlescount; hdrsi++)
{
if ( (bp= coin->bundles[hdrsi]) != 0 && time(NULL) > bp->dirty+60 && bp->ramchain.H.data != 0 && bp->ramchain.A != 0 && bp->ramchain.Uextras != 0 )
if ( (bp= coin->bundles[hdrsi]) != 0 && bp->dirty != 0 && time(NULL) > bp->dirty+60 && bp->ramchain.H.data != 0 && bp->ramchain.A != 0 && bp->ramchain.Uextras != 0 )
{
sprintf(fname,"accounts/%s/debits.%d",coin->symbol,bp->bundleheight);
sprintf(fname2,"accounts/%s/lastspends.%d",coin->symbol,bp->bundleheight);

2
iguana/iguana_ramchain.c

@ -1289,7 +1289,7 @@ int32_t iguana_ramchain_free(struct iguana_ramchain *ramchain,int32_t deleteflag
void iguana_ramchain_extras(struct iguana_info *coin,struct iguana_ramchain *ramchain,struct OS_memspace *hashmem,int32_t extraflag)
{
RAMCHAIN_DECLARE; char fname[1024]; long filesize;
RAMCHAIN_DECLARE; char fname[1024]; //long filesize;
if ( ramchain->expanded != 0 )
{
_iguana_ramchain_setptrs(RAMCHAIN_PTRS,ramchain->H.data);

9
iguana/main.c

@ -339,17 +339,10 @@ void iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp)
void mainloop(struct supernet_info *myinfo)
{
int32_t flag; struct iguana_helper *ptr; struct iguana_info *coin;
int32_t flag; struct iguana_helper *ptr; //struct iguana_info *coin;
while ( 1 )
{
flag = 0;
while ( (ptr= queue_dequeue(&balancesQ,0)) != 0 )
{
flag++;
if ( ptr->bp != 0 && ptr->coin != 0 )
iguana_balancecalc(ptr->coin,ptr->bp);
myfree(ptr,ptr->allocsize);
}
//for (i=0; i<IGUANA_MAXCOINS; i++)
// if ( (coin= Coins[i]) != 0 && coin->active != 0 )
// iguana_coinflush(coin);

Loading…
Cancel
Save