Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ec0ea52160
  1. 6
      iguana/iguana777.c
  2. 2
      iguana/iguana_init.c
  3. 7
      iguana/iguana_unspents.c

6
iguana/iguana777.c

@ -353,6 +353,12 @@ int32_t iguana_helpertask(FILE *fp,struct OS_memspace *mem,struct OS_memspace *m
void iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp)
{
uint32_t starttime;
if ( bp->balancefinish > 1 )
{
printf("make sure DB files have this bp.%d\n",bp->hdrsi);
iguana_validateQ(coin,bp);
return;
}
starttime = (uint32_t)time(NULL);
if ( iguana_balancegen(coin,bp) < 0 )
{

2
iguana/iguana_init.c

@ -280,7 +280,7 @@ void iguana_parseline(struct iguana_info *coin,int32_t iter,FILE *fp)
//if ( bp->hdrsi == 0 || coin->bundles[bp->hdrsi-1]->emitfinish != 0 )
{
if ( 1 )
bp->startutxo = bp->utxofinish = (uint32_t)time(NULL);
bp->validated = bp->balancefinish = bp->startutxo = bp->utxofinish = (uint32_t)time(NULL);
//printf("GENERATE UTXO, verify sigs, etc for ht.%d\n",bp->bundleheight);
iguana_bundleQ(coin,bp,1000);
}

7
iguana/iguana_unspents.c

@ -484,7 +484,10 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp)
int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp)
{
bp->validated = (uint32_t)time(NULL);
printf("VALIDATE.%d %u\n",bp->bundleheight,bp->validated);
if ( bp->validated <= 1 )
{
bp->validated = (uint32_t)time(NULL);
printf("VALIDATE.%d %u\n",bp->bundleheight,bp->validated);
}
return(0);
}
Loading…
Cancel
Save