Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6ecfd2186f
  1. 10
      iguana/iguana777.c
  2. 4
      iguana/iguana_bundles.c
  3. 2
      iguana/main.c

10
iguana/iguana777.c

@ -392,6 +392,11 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
} else printf("UTXO gen.[%d] utxo error\n",bp->hdrsi);
}
}
while ( (n= iguana_utxofinished(coin)) < max )
{
//printf("helperid.%d utxofinished.%d vs %d\n",helperid,n,max);
sleep(3);
}
for (hdrsi=helperid; hdrsi<max; hdrsi+=incr)
{
if ( (bp= coin->bundles[hdrsi]) == 0 )
@ -402,11 +407,6 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
exit(-1);
}
}
while ( (n= iguana_utxofinished(coin)) < max )
{
//printf("helperid.%d utxofinished.%d vs %d\n",helperid,n,max);
sleep(3);
}
if ( convertflag == 0 )
{
for (hdrsi=helperid; hdrsi<max; hdrsi+=incr)

4
iguana/iguana_bundles.c

@ -735,7 +735,7 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp,int
}
else
{
#ifndef __PNACL__
//#ifndef __PNACL__
int32_t checki,hdrsi; FILE *fp;
fname[0] = 0;
checki = iguana_peerfname(coin,&hdrsi,GLOBAL_TMPDIR,fname,0,block->RO.hash2,zero,1,0);
@ -750,7 +750,7 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp,int
fclose(fp);
}
else
#endif
//#endif
{
iguana_blockunmark(coin,block,bp,i,1);
if ( requiredflag != 0 )

2
iguana/main.c

@ -68,7 +68,7 @@ int32_t HDRnet,netBLOCKS;
cJSON *API_json;
#ifdef __PNACL__
char GLOBAL_TMPDIR[512] = "/DB/tmp";
char GLOBAL_TMPDIR[512] = "/tmp";
char GLOBAL_DBDIR[512] = "/DB";
char GLOBAL_HELPDIR[512] = "/DB/help";
char GLOBAL_VALIDATEDIR[512] = "/DB/purgeable";

Loading…
Cancel
Save