Browse Source

test

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

2
iguana/iguana777.h

@ -29,7 +29,7 @@
#define IGUANA_HEIGHT 200
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 13 //64
#define _IGUANA_MAXPENDING 512 //64
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_MAXACTIVEBUNDLES 32
#define IGUANA_MAXFILES 4096

5
iguana/iguana_recv.c

@ -432,10 +432,9 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
{
char str[65]; printf("blockhashes[%d] %s\n",num,bits256_str(str,blockhashes[1]));
iguana_blockQ(coin,0,-1,blockhashes[1],1);
for (i=coin->chain->bundlesize*0; i<num; i++)
for (i=coin->chain->bundlesize; i<num; i++)
{
//if ( i >= coin->chain->bundlesize && (i % coin->chain->bundlesize) < 2 )
if ( bits256_nonz(blockhashes[i]) > 0 )
if ( i >= coin->chain->bundlesize && (i % coin->chain->bundlesize) < 2 && bits256_nonz(blockhashes[i]) > 0 )
iguana_blockQ(coin,0,-1,blockhashes[i],0);
}
}

Loading…
Cancel
Save