Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1da857fee9
  1. 2
      iguana/iguana777.h
  2. 8
      iguana/iguana_bundles.c

2
iguana/iguana777.h

@ -26,7 +26,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 10
#define IGUANA_MAXITERATIONS 1000
#define IGUANA_MAXITERATIONS 10000
#define IGUANA_DEFAULTLAG 20
#define IGUANA_MAXCOINS 64

8
iguana/iguana_bundles.c

@ -834,9 +834,13 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp)
int32_t iguana_bundlefinalize(struct iguana_info *coin,struct iguana_bundle *bp,struct OS_memspace *mem,struct OS_memspace *memB)
{
int32_t i,numemit = 0;
if ( iguana_bundleready(coin,bp,0) == bp->n )
{
printf(">>>>>>>>>>>>>> EMIT.[%3d] %s E.-3%d | 1st.%-3d h.%-3d c.%-3d s.[%3d] maxB.%d NET.(h%d b%d) %ld:%02ld\n",bp->hdrsi,coin->symbol,coin->numemit,coin->current!=0?coin->current->hdrsi:-1,coin->current!=0?coin->current->numhashes:-1,coin->current!=0?coin->current->numcached:-1,coin->current!=0?coin->current->numsaved:-1,coin->MAXBUNDLES,HDRnet,netBLOCKS,(time(NULL)-coin->startutc)/60,(time(NULL)-coin->startutc)%60);
for (i=0; i<coin->bundlescount; i++)
if ( coin->bundles[i] != 0 && coin->bundles[i]->ramchain.H.data != 0 )
numemit++;
printf(">>>>>>>>>>>>>> EMIT.[%3d] %s E.-3%d | 1st.%-3d h.%-3d c.%-3d s.[%3d] maxB.%d NET.(h%d b%d) %ld:%02ld\n",bp->hdrsi,coin->symbol,numemit,coin->current!=0?coin->current->hdrsi:-1,coin->current!=0?coin->current->numhashes:-1,coin->current!=0?coin->current->numcached:-1,coin->current!=0?coin->current->numsaved:-1,coin->MAXBUNDLES,HDRnet,netBLOCKS,(time(NULL)-coin->startutc)/60,(time(NULL)-coin->startutc)%60);
if ( bp->emitfinish != 0 )
{
printf("already EMIT for bundle.%d\n",bp->hdrsi);
@ -1098,7 +1102,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
}
else
{
if ( bp->hdrsi >= starti && bp->hdrsi < lasti && (displag % 3) == 2 && netBLOCKS < IGUANA_NUMHELPERS*1000 )
if ( bp->hdrsi >= starti && bp->hdrsi < lasti && (displag % 3) == 2 )
{
if ( (aveduration= iguana_bundlemissings(coin,bp,recentduration)) != 0 )
dxblend(&recentduration,aveduration,.5);

Loading…
Cancel
Save