Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ea594742a8
  1. 2
      iguana/iguana_realtime.c
  2. 2
      iguana/iguana_spendvectors.c

2
iguana/iguana_realtime.c

@ -251,7 +251,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
bp = coin->current; bp = coin->current;
if ( bp == 0 )//|| iguana_validated(coin) < bp->hdrsi ) if ( bp == 0 )//|| iguana_validated(coin) < bp->hdrsi )
{ {
printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi); //printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi);
return(0); return(0);
} }
if ( 1 && coin->RTheight > 0 && coin->spendvectorsaved != 1 && coin->bundlescount-1 != coin->balanceswritten ) if ( 1 && coin->RTheight > 0 && coin->spendvectorsaved != 1 && coin->bundlescount-1 != coin->balanceswritten )

2
iguana/iguana_spendvectors.c

@ -1126,7 +1126,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp,
} }
free(blockspace); free(blockspace);
bp->validated = (uint32_t)time(NULL); bp->validated = (uint32_t)time(NULL);
printf("VALIDATED.[%d] ht.%d duration.%d errs.%d total.%lld %u | total errs.%d validated.%d %llx\n",bp->hdrsi,bp->bundleheight,bp->validated - now,errs,(long long)total,bp->validated,totalerrs,totalvalidated,(long long)validatehash.txid); // printf("VALIDATED.[%d] ht.%d duration.%d errs.%d total.%lld %u | total errs.%d validated.%d %llx\n",bp->hdrsi,bp->bundleheight,bp->validated - now,errs,(long long)total,bp->validated,totalerrs,totalvalidated,(long long)validatehash.txid);
//iguana_volatilesmap(coin,&bp->ramchain); //iguana_volatilesmap(coin,&bp->ramchain);
//if ( bp == coin->current ) //if ( bp == coin->current )
// coin->RTdatabad = -1; // coin->RTdatabad = -1;

Loading…
Cancel
Save