Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5bf80f6aad
  1. 2
      iguana/iguana777.c
  2. 6
      iguana/iguana_unspents.c

2
iguana/iguana777.c

@ -392,7 +392,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid)
}
while ( coin->spendvectorsaved == 1 )
{
printf("helperid.%d waiting for spendvectorsaved.%u\n",helperid,coin->spendvectorsaved);
//printf("helperid.%d waiting for spendvectorsaved.%u\n",helperid,coin->spendvectorsaved);
sleep(3);
}
printf("helper.%d finished utxogen\n",helperid);

6
iguana/iguana_unspents.c

@ -841,7 +841,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
ptr = mycalloc('x',sizeof(*ptr),n);
total += n;
startmillis = OS_milliseconds();
if ( strcmp(coin->symbol,"BTC") == 0 )
if ( 0 && strcmp(coin->symbol,"BTC") == 0 )
printf("start UTXOGEN.%d max.%d ptr.%p millis.%.3f\n",bp->bundleheight,n,ptr,startmillis);
//txidind = spendind = rdata->firsti;
starttime = (uint32_t)time(NULL);
@ -968,7 +968,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
{
bp->tmpspends = myrealloc('x',ptr,sizeof(*ptr)*n,sizeof(*ptr)*emit);
bp->numtmpspends = emit;
printf("ALLOC tmpspends.[%d]\n",bp->hdrsi);
//printf("ALLOC tmpspends.[%d]\n",bp->hdrsi);
ptr = 0;
}
} else errs = -iguana_spendvectorsave(coin,bp,ramchain,ptr!=0?ptr:bp->tmpspends,emit,n);
@ -1081,7 +1081,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
S = (void *)(long)((long)rdata + rdata->Soffset);
B = (void *)(long)((long)rdata + rdata->Boffset);
T = (void *)(long)((long)rdata + rdata->Toffset);
if ( ramchain->Xspendinds == 0 )
if ( bp->hdrsi > 0 && ramchain->Xspendinds == 0 )
{
printf("iguana_balancegen.%d: no Xspendinds[%d]\n",bp->hdrsi,ramchain->numXspends);
return(-1);

Loading…
Cancel
Save