Browse Source

test

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

23
iguana/iguana777.c

@ -453,9 +453,9 @@ void iguana_update_balances(struct iguana_info *coin)
{
iguana_volatilespurge(coin,&bp->ramchain);
sprintf(fname,"%s/%s/accounts/debits.%d",GLOBAL_DBDIR,coin->symbol,bp->bundleheight);
OS_removefile(fname,0);
OS_removefile(fname,0);
sprintf(fname,"%s/%s/accounts/lastspends.%d",GLOBAL_DBDIR,coin->symbol,bp->bundleheight);
OS_removefile(fname,0);
OS_removefile(fname,0);
iguana_volatilesalloc(coin,&bp->ramchain,0);//i < hdrsi);
}
printf("accounts files purged\n");
@ -476,13 +476,22 @@ void iguana_update_balances(struct iguana_info *coin)
}
} else printf("null bp.[%d]\n",hdrsi);
}
//if ( max != coin->origbalanceswritten )
{
coin->balanceflush = max+1;
while ( coin->balanceflush != 0 )
sleep(3);
}// else printf("skip flush when max.%d and orig.%d\n",max,coin->origbalanceswritten);
}
//if ( max != coin->origbalanceswritten )
else
{
coin->balanceflush = max+1;
while ( coin->balanceflush != 0 )
sleep(3);
}// else printf("skip flush when max.%d and orig.%d\n",max,coin->origbalanceswritten);
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)

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 )
printf("%s -> %s\n",fname,destfname);
OS_removefile(fname,0);
OS_removefile(fname2,0);
//OS_removefile(fname,0);
//OS_removefile(fname2,0);
}
if ( bp->ramchain.allocatedA2 == 0 || bp->ramchain.allocatedU2 == 0 )
{

Loading…
Cancel
Save