From 554b4af4c0724bddbf1dc5fb7d52af24cab86a87 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 24 Aug 2016 21:38:59 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 2 +- iguana/iguana777.c | 2 +- iguana/iguana_unspents.c | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 311cca1c2..6cdbf3225 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -389,7 +389,7 @@ char *basilisk_standardservice(char *CMD,struct supernet_info *myinfo,void *_add } ptr->finished = (uint32_t)time(NULL); } - if ( 1 && strcmp("RID",CMD) != 0 ) + if ( 1 && strcmp("RID",CMD) != 0 && strcmp("BAL",CMD) != 0 ) printf("%s.(%s) -> (%s)\n",CMD,jprint(valsobj,0),retstr!=0?retstr:""); return(retstr); } diff --git a/iguana/iguana777.c b/iguana/iguana777.c index f9c7d6a22..fb5634f87 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -476,7 +476,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int printf("skip utxogen as spendvectorsaved.%u\n",coin->spendvectorsaved); return(0); } - printf("helperid.%d start utxogen\n",helperid); + printf("helperid.%d start %s utxogen\n",helperid,coin->symbol); if ( (incr= IGUANA_NUMHELPERS) > 8 ) incr = 8; max = coin->bundlescount; diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 7db0b25a0..14e5f5a49 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -120,9 +120,10 @@ int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *c unspentind = (tp->firstvout + vout); if ( coinaddr != 0 && unspentind > 0 && (hdrsi= *heightp/coin->chain->bundlesize) >= 0 && hdrsi < coin->bundlescount && (bp= coin->bundles[hdrsi]) != 0 && (rdata= bp->ramchain.H.data) != 0 && unspentind < rdata->numunspents ) { - if ( time(NULL) > bp->lastprefetch+13 ) + if ( time(NULL) > bp->lastprefetch+60 ) { - iguana_ramchain_prefetch(coin,&bp->ramchain,6); + fprintf(stderr,"[%d] ",bp->hdrsi); + iguana_ramchain_prefetch(coin,&bp->ramchain,0); bp->lastprefetch = (uint32_t)time(NULL); } U = RAMCHAIN_PTR(rdata,Uoffset); @@ -359,7 +360,8 @@ struct iguana_pkhash *iguana_pkhashfind(struct iguana_info *coin,struct iguana_r return(0); } ramchain = &bp->ramchain;//(bp != coin->current) ? &bp->ramchain : &coin->RTramchain; - if ( (rdata= ramchain->H.data) != 0 && time(NULL) > bp->emitfinish+90 ) + // prevent remote query access before RTmode + if ( (rdata= ramchain->H.data) != 0 && time(NULL) > bp->emitfinish+10 ) { numpkinds = rdata->numpkinds; PKbits = RAMCHAIN_PTR(rdata,PKoffset);