Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
554b4af4c0
  1. 2
      basilisk/basilisk.c
  2. 2
      iguana/iguana777.c
  3. 8
      iguana/iguana_unspents.c

2
basilisk/basilisk.c

@ -389,7 +389,7 @@ char *basilisk_standardservice(char *CMD,struct supernet_info *myinfo,void *_add
} }
ptr->finished = (uint32_t)time(NULL); 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:""); printf("%s.(%s) -> (%s)\n",CMD,jprint(valsobj,0),retstr!=0?retstr:"");
return(retstr); return(retstr);
} }

2
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); printf("skip utxogen as spendvectorsaved.%u\n",coin->spendvectorsaved);
return(0); return(0);
} }
printf("helperid.%d start utxogen\n",helperid); printf("helperid.%d start %s utxogen\n",helperid,coin->symbol);
if ( (incr= IGUANA_NUMHELPERS) > 8 ) if ( (incr= IGUANA_NUMHELPERS) > 8 )
incr = 8; incr = 8;
max = coin->bundlescount; max = coin->bundlescount;

8
iguana/iguana_unspents.c

@ -120,9 +120,10 @@ int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *c
unspentind = (tp->firstvout + vout); 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 ( 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); bp->lastprefetch = (uint32_t)time(NULL);
} }
U = RAMCHAIN_PTR(rdata,Uoffset); U = RAMCHAIN_PTR(rdata,Uoffset);
@ -359,7 +360,8 @@ struct iguana_pkhash *iguana_pkhashfind(struct iguana_info *coin,struct iguana_r
return(0); return(0);
} }
ramchain = &bp->ramchain;//(bp != coin->current) ? &bp->ramchain : &coin->RTramchain; 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; numpkinds = rdata->numpkinds;
PKbits = RAMCHAIN_PTR(rdata,PKoffset); PKbits = RAMCHAIN_PTR(rdata,PKoffset);

Loading…
Cancel
Save