From c8adcddb0d7220025c48e2f2b1e1dd366d200c07 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Sep 2016 13:30:37 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 ++-- iguana/iguana_spendvectors.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index fa950af8a..05445a78f 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1064,9 +1064,9 @@ int32_t iguana_bundlefinalize(struct supernet_info *myinfo,struct iguana_info *c for (i=0; ibundlescount; i++) if ( (tmpbp= coin->bundles[i]) != 0 ) tmpbp->converted = tmpbp->balancefinish = tmpbp->validated = 0; -#ifdef __PNACL__ +//#ifdef __PNACL__ iguana_bundlevalidate(myinfo,coin,bp,1); -#endif +//#endif } else { diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 414914aa4..da7bf1f6b 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -1151,7 +1151,9 @@ int32_t iguana_bundlevalidate(struct supernet_info *myinfo,struct iguana_info *c } } free(blockspace); - bp->validated = (uint32_t)time(NULL); + if ( totalerrs == 0 ) + bp->validated = (uint32_t)time(NULL); + else bp->startutxo = bp->utxofinish = 0; // 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); //if ( bp == coin->current )