diff --git a/iguana/iguana777.c b/iguana/iguana777.c index b54bfee21..8f730bfa0 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -450,7 +450,7 @@ void iguana_update_balances(struct supernet_info *myinfo,struct iguana_info *coi max = coin->bundlescount; if ( coin->bundles[max-1] == coin->current || coin->bundles[max-1] == 0 || (coin->bundles[max-1] != 0 && coin->bundles[max-1]->utxofinish <= 1) ) max--; - if ( coin->chain->zcash != 0 ) + if ( 1 && coin->chain->zcash != 0 ) { coin->spendvectorsaved = 0; for (i=0; ibundlescount-1; i++) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 16ed68bd5..024da170e 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1337,7 +1337,7 @@ int32_t iguana_Xspendmap(struct iguana_info *coin,struct iguana_ramchain *ramcha bp->startutxo = bp->utxofinish = (uint32_t)time(NULL); if ( bp->Xvalid == 0 ) { - if ( (rand() % 10) == 0 ) + if ( 0 && (rand() % 10) == 0 ) printf("[%d] filesize %ld Xspendptr.%p %p num.%d\n",bp->hdrsi,filesize,ramchain->Xspendptr,ramchain->Xspendinds,ramchain->numXspends); bp->Xvalid = 1; } @@ -1467,7 +1467,7 @@ struct iguana_ramchain *_iguana_ramchain_map(struct supernet_info *myinfo,struct { for (i=0; in; i++) { - iguana_blockzcopyRO(zcash,(void *)&zRO,0,B,i); + iguana_blockzcopyRO(0*zcash,(void *)&zRO,0,B,i); if ( bp->blocks[i] == 0 && (bp->blocks[i]= iguana_blockhashset("mapchain",coin,-1,zRO.RO.hash2,1)) == 0 ) { printf("Error getting blockptr\n"); @@ -1477,7 +1477,7 @@ struct iguana_ramchain *_iguana_ramchain_map(struct supernet_info *myinfo,struct { bp->hashes[i] = zRO.RO.hash2; //bp->blocks[i]->RO = zRO.RO; - iguana_blockzcopyRO(zcash,&bp->blocks[i]->RO,0,(void *)&zRO,0); + iguana_blockzcopyRO(0*zcash,&bp->blocks[i]->RO,0,(void *)&zRO,0); } /* if ( (bRO= iguana_blockzcopyRO(zcash,&bp->blocks[i]->RO,0,B,i)) != 0 ) { @@ -1917,7 +1917,7 @@ long iguana_ramchain_data(struct supernet_info *myinfo,struct iguana_info *coin, { if ( (err= iguana_ramchain_verify(coin,ramchain)) == 0 ) { - iguana_blockzcopyRO(coin->chain->zcash,B,0,&RO,0); + iguana_blockzcopyRO(0*coin->chain->zcash,B,0,&RO,0); rdata->scriptspace = ramchain->H.scriptoffset = scriptspace; rdata->stackspace = ramchain->H.stacksize = stackspace; if ( (fpos= (int32_t)iguana_ramchain_save(coin,RAMCHAIN_ARG,(uint32_t)addr->ipbits,RO.hash2,RO.prev_block,bundlei,0,coin->chain->zcash)) >= 0 ) @@ -2310,7 +2310,7 @@ struct iguana_ramchain *iguana_bundleload(struct supernet_info *myinfo,struct ig block->hdrsi = bp->hdrsi; block->bundlei = i; block->fpipbits = (uint32_t)calc_ipbits("127.0.0.1"); - iguana_blockzcopyRO(coin->chain->zcash,&block->RO,0,B,i); + iguana_blockzcopyRO(0*coin->chain->zcash,&block->RO,0,B,i); //printf("%x ",(int32_t)B[i].hash2.ulongs[3]); bp->blocks[i] = block; bp->hashes[i] = block->RO.hash2; @@ -2561,7 +2561,7 @@ int32_t iguana_bundlesaveHT(struct supernet_info *myinfo,struct iguana_info *coi iguana_blockunmark(coin,block,bp,i,1); return(-1); } - iguana_blockzcopyRO(coin->chain->zcash,destB,i,&block->RO,0); + iguana_blockzcopyRO(0*coin->chain->zcash,destB,i,&block->RO,0); //destB[i] = block->RO; } else printf("bundlesave error getting block (%d:%d) %p vs %p\n",bp->hdrsi,i,block,bp->blocks[i]); } @@ -2576,7 +2576,7 @@ int32_t iguana_bundlesaveHT(struct supernet_info *myinfo,struct iguana_info *coi { iguana_blocksetcounters(coin,block,dest); //coin->blocks.RO[bp->bundleheight+bundlei] = block->RO; - iguana_blockzcopyRO(coin->chain->zcash,destB,bundlei,&block->RO,0); + iguana_blockzcopyRO(0*coin->chain->zcash,destB,bundlei,&block->RO,0); //destB[bundlei] = block->RO; //fprintf(stderr,"(%d %d).%d ",R[bundlei].H.data->numtxids,dest->H.txidind,bundlei); if ( (err= iguana_ramchain_iterate(myinfo,coin,dest,&R[bundlei],bp,bundlei)) != 0 ) diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 8f78f663a..0667d429e 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -1134,7 +1134,7 @@ int32_t iguana_bundlevalidate(struct supernet_info *myinfo,struct iguana_info *c if ( coin->chain->zcash != 0 ) { static uint32_t counter; - if ( counter++ < 3 ) + if ( 0 && counter++ < 3 ) printf("need to process joinsplits before can validate.%s\n",coin->symbol); bp->validated = (uint32_t)time(NULL); forceflag = 1;