diff --git a/iguana/iguana777.h b/iguana/iguana777.h index ed7463ad1..080a6eccd 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -23,7 +23,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len); #define IGUANA_MAXSCRIPTSIZE 10001 -//#define IGUANA_SERIALIZE_SPENDVECTORGEN +#define IGUANA_SERIALIZE_SPENDVECTORGEN //#define IGUANA_SERIALIZE_BALANCEGEN //#define IGUANA_DISABLEPEERS diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 586b454a4..9f672e4e9 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -398,9 +398,9 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp) printf("unexpected spendbp: height.%d bp.[%d] U%d <- S%d.[%d] [ext.%d %s prev.%d]\n",bp->bundleheight+i,spentbp->hdrsi,spent_unspentind,spendind,bp->hdrsi,s->external,bits256_str(str,prevhash),s->prevout); errs++; } - if ( now > spentbp->lastprefetch+30 ) + if ( now > spentbp->lastprefetch+10 ) { - //printf("prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); + printf("prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); iguana_ramchain_prefetch(coin,&spentbp->ramchain); spentbp->lastprefetch = now; } @@ -951,13 +951,21 @@ int32_t iguana_realtime_update(struct iguana_info *coin) } else { - printf("no ptr for RTheight.%d\n",coin->RTheight); + //printf("no fileptr for RTheight.%d\n",coin->RTheight); return(-1); } } else { - printf("no blockptr for RTheight.%d\n",coin->RTheight); + if ( block == 0 ) + printf("no blockptr.%p for RTheight.%d\n",block,coin->RTheight); + else + { + block->queued = 0; + block->fpipbits = 0; + bp->issued[bundlei] = 0; + block->issued = 0; + } return(-1); } } diff --git a/iguana/main.c b/iguana/main.c index 7e72f26c4..dec4e2c5d 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1132,7 +1132,7 @@ void iguana_main(void *arg) sleep(1); char *str; //iguana_launchcoin(MYINFO.rpcsymbol,cJSON_Parse("{}")); - if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"startpend\":128,\"endpend\":128,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":129,\"maxpeers\":512,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":1}"),0)) != 0 ) + if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"startpend\":64,\"endpend\":32,\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":129,\"maxpeers\":512,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":1}"),0)) != 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)) != 0 )