diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 4d4b2114f..c4af43275 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -638,7 +638,7 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl iguana_bundlehash2add(coin,0,bp,bundlei,hash2); if ( bp->emitfinish == 0 ) { - if ( bp->hdrsi == coin->longestchain/bp->n && bits256_nonz(block->RO.hash2) != 0 && block->fpipbits == 0 ) + if ( bp->hdrsi == coin->longestchain/bp->n && block->fpipbits == 0 ) //bits256_nonz(block->RO.hash2) != 0 && b { block->fpos = -1; checki = iguana_peerfname(coin,&hdrsi,GLOBALTMPDIR,fname,0,block->RO.hash2,zero,1,0); diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 6c0b53de8..649d19163 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -990,7 +990,7 @@ int32_t iguana_RTutxo(struct iguana_info *coin,struct iguana_bundle *bp,struct i rdata = spentbp->ramchain.H.data; if ( coin->PREFETCHLAG != 0 && now >= spentbp->lastprefetch+coin->PREFETCHLAG ) { - printf("RT prefetch[%d] from.[%d] lag.%d bundlei.%d numspends.%d of %d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch,bundlei,spendind,T[txidind].numvins); + printf("RT prefetch[%d] from.[%d] lag.%d bundlei.%d numspends.%d of %d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch,bundlei,spendind,RTramchain->H.spendind); iguana_ramchain_prefetch(coin,&spentbp->ramchain); spentbp->lastprefetch = now; } diff --git a/iguana/main.c b/iguana/main.c index a4b9cf3f0..06b578b4e 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1191,7 +1191,7 @@ void iguana_main(void *arg) if ( 1 ) { sleep(1); - if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"startpend\":128,\"endpend\":64,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":512,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":8,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) + if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"prefetchlag\":13,\"startpend\":128,\"endpend\":64,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":512,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":8,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) { free(str); if ( 0 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1024,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1}"),0,myinfo->rpcport)) != 0 )