Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2a0d4163c0
  1. 4
      iguana/iguana_unspents.c
  2. 4
      iguana/main.c

4
iguana/iguana_unspents.c

@ -753,7 +753,7 @@ uint32_t iguana_spendvectorconv(struct iguana_info *coin,struct iguana_spendvect
static uint64_t count,converted,errs;
struct iguana_bundle *spentbp; struct iguana_unspent *spentU; uint32_t spent_pkind;
count++;
if ( (count % 1000000) == 0 )
if ( 0 && (count % 1000000) == 0 )
printf("iguana_spendvectorconv.[%llu] errs.%llu converted.%llu %.2f%%\n",(long long)count,(long long)errs,(long long)converted,100. * (long long)converted/count);
if ( ptr->tmpflag != 0 )
{
@ -1677,7 +1677,7 @@ void iguana_convert(struct iguana_info *coin,struct iguana_bundle *bp,int32_t RT
static int64_t total,depth;
int32_t i,n,m,converted; int64_t total_tmpspends; double startmillis = OS_milliseconds();
depth++;
printf("iguana_convert.[%d] depth.%d %u\n",bp->hdrsi,(int32_t)depth,bp->converted);
//printf("iguana_convert.[%d] depth.%d %u\n",bp->hdrsi,(int32_t)depth,bp->converted);
if ( (converted= iguana_spendvectorconvs(coin,bp)) < 0 )
printf("error ram balancecalc.[%d]\n",bp->hdrsi);
else

4
iguana/main.c

@ -69,7 +69,7 @@ cJSON *API_json;
#ifdef __linux__
int32_t IGUANA_NUMHELPERS = 8;
#else
int32_t IGUANA_NUMHELPERS = 4;
int32_t IGUANA_NUMHELPERS = 1;
#endif
struct iguana_jsonitem { struct queueitem DL; struct supernet_info *myinfo; uint32_t fallback,expired,allocsize; char **retjsonstrp; char remoteaddr[64]; uint16_t port; char jsonstr[]; };
@ -388,7 +388,7 @@ void mainloop(struct supernet_info *myinfo)
{
isRT *= coin->isRT;
numpeers += coin->peers.numranked;
if ( coin->spendvectorsaved == 0 && coin->blocks.hwmchain.height >= coin->longestchain-3 )
if ( time(NULL) > coin->startutc+10 && coin->spendvectorsaved == 0 && coin->blocks.hwmchain.height >= coin->longestchain-3 )
{
n = coin->bundlescount-1;
if ( iguana_emitfinished(coin) >= n )

Loading…
Cancel
Save