From 192dfa62e3ccb7213c8c2a78f0960bb43bacc90d Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 18 Apr 2016 22:29:31 -0500 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_unspents.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 2def08770..ef4070759 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -378,7 +378,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert { if ( (bp= coin->bundles[hdrsi]) == 0 ) return(-1); - printf("validate and gen utxo.[%d] Xspends.%p\n",hdrsi,bp->ramchain.Xspendinds); + printf("validate incr.%d and gen utxo.[%d] utxofinish.%u Xspends.%p\n",incr,hdrsi,bp->utxofinish,bp->ramchain.Xspendinds); if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,0) == bp->n ) { retval = 0; diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 4ff32db30..f4aa3fd95 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -942,7 +942,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st uint32_t spent_unspentind,spent_pkind,now,starttime; struct iguana_ramchaindata *rdata; struct iguana_bundle *spentbp; struct iguana_blockRO *B; struct iguana_spendvector *ptr; struct iguana_unspent *u,*spentU; struct iguana_txid *T; char str[65]; struct iguana_spend *S,*s; - //printf("iguana_spendvectors.[%d] gen.%d ramchain data.%p\n",bp->hdrsi,bp->bundleheight,ramchain->H.data); + printf("iguana_spendvectors.[%d] gen.%d ramchain data.%p\n",bp->hdrsi,bp->bundleheight,ramchain->H.data); if ( (rdata= ramchain->H.data) == 0 || (n= rdata->numspends) < 1 ) { printf("iguana_spendvectors: no rdata.%p %d\n",rdata,n); @@ -1980,6 +1980,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp, static int32_t totalerrs,totalvalidated; FILE *fp; char fname[1024]; uint8_t *blockspace; uint32_t now = (uint32_t)time(NULL); int32_t i,max,len,errs = 0; int64_t total = 0; + printf("validate.[%d]\n",bp->hdrsi); if ( bp->validated <= 1 || forceflag != 0 ) { sprintf(fname,"%s/%s/validated/%d",GLOBAL_DBDIR,coin->symbol,bp->bundleheight);