Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d58074585e
  1. 2
      iguana/iguana777.h
  2. 5
      iguana/iguana_recv.c

2
iguana/iguana777.h

@ -35,7 +35,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_HEADPERCENTAGE .00777
#define IGUANA_TAILPERCENTAGE 1.
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 8
#define _IGUANA_MAXPENDING 64
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_BUNDLELOOP 3
#define IGUANA_RPCPORT 7778

5
iguana/iguana_recv.c

@ -1031,6 +1031,10 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
int32_t hdrsi,lflag,n,bundlei,flag = 0; bits256 hash2; struct iguana_block *next,*block; struct iguana_bundle *bp;
if ( queue_size(&coin->priorityQ) == 0 && (bp= coin->current) != 0 && bp->numsaved < bp->n )
{
for (hdrsi=0; hdrsi<8&&coin->current->hdrsi+hdrsi<coin->bundlescount; hdrsi++)
{
if ( (bp= coin->bundles[hdrsi + coin->current->hdrsi]) == 0 )
break;
for (bundlei=n=0; bundlei<bp->n; bundlei++)
if ( (block= bp->blocks[bundlei]) != 0 )
{
@ -1054,6 +1058,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
if ( flag != 0 )
printf("issued %d priority blocks for current.[%d] have %d blocks emit.%u\n",flag,bp->hdrsi,n,bp->emitfinish);
}
}
hdrsi = (coin->blocks.hwmchain.height+1) / coin->chain->bundlesize;
if ( (bp= coin->bundles[hdrsi]) != 0 )
{

Loading…
Cancel
Save