Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
00d0476119
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_bundles.c
  3. 7
      iguana/main.c

2
iguana/iguana777.c

@ -449,7 +449,7 @@ void iguana_helper(void *arg)
}
else
{
//printf("skip.[%d] nexttime.%u lag.%ld coin->active.%d\n",bp->hdrsi,bp->nexttime,time(NULL)-bp->nexttime,coin->active);
printf("skip.[%d] nexttime.%u lag.%ld coin->active.%d\n",bp->hdrsi,bp->nexttime,time(NULL)-bp->nexttime,coin->active);
allcurrent--;
iguana_bundleQ(coin,bp,1000);
}

2
iguana/iguana_bundles.c

@ -838,7 +838,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
iguana_bundlecalcs(coin,bp,lag);
if ( bp->hdrsi == coin->bundlescount-1 )
iguana_autoextend(coin,bp);
//printf("ITER utxo.%u now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",bp->utxofinish,(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount);
printf("ITER utxo.%u now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",bp->utxofinish,(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount);
bp->nexttime = (uint32_t)time(NULL) + 1;//cbrt(bp->hdrsi - starti)/10;
if ( bp->hdrsi == coin->bundlescount-1 || (bp->numhashes < bp->n && bp->bundleheight < coin->longestchain-coin->chain->bundlesize) )
iguana_bundlehdr(coin,bp,starti);

7
iguana/main.c

@ -386,14 +386,15 @@ void mainloop(struct supernet_info *myinfo)
{
if ( (bp= coin->bundles[j]) != 0 )
{
printf("bundleQ.[%d]\n",j);
bp->balancefinish = bp->utxofinish = 0;
bp->startutxo = (uint32_t)time(NULL);
iguana_bundleQ(coin,bp,1000);
}
}
} else printf("skip A j.%d vs n.%d\n",j,n);
} else printf("skip j.%d vs n.%d\n",j,n);
} else printf("skip hdrsi.%d vs %d\n",coin->current->hdrsi,coin->longestchain/coin->chain->bundlesize);
} //else printf("skip A j.%d vs n.%d\n",j,n);
} //else printf("skip j.%d vs n.%d\n",j,n);
} //else printf("skip hdrsi.%d vs %d\n",coin->current->hdrsi,coin->longestchain/coin->chain->bundlesize);
n = queue_size(&balancesQ);
for (iter=0; iter<n; iter++)
{

Loading…
Cancel
Save