Browse Source

test

release/v0.1
jl777 9 years ago
committed by Christopher Valerio
parent
commit
0777963037
  1. 13
      iguana/iguana_recv.c
  2. 4
      includes/iguana_globals.h

13
iguana/iguana_recv.c

@ -767,10 +767,15 @@ void iguana_gotblockM(struct supernet_info *myinfo,struct iguana_info *coin,stru
} }
else // new bundle case, but bad context to extend else // new bundle case, but bad context to extend
{ {
origtxdata->zblock.issued = 0; bits256 zero;
origtxdata->zblock.RO.recvlen = 0; memset(zero.bytes,0,sizeof(zero));
printf("gotblockM2: error finding block %s\n",bits256_str(str,origtxdata->zblock.RO.hash2)); if ( (bp= iguana_bundlecreate(coin,&bundlei,bp->bundleheight + coin->chain->bundlesize,origtxdata->zblock.RO.hash2,zero,0)) == 0 )
return; {
origtxdata->zblock.issued = 0;
origtxdata->zblock.RO.recvlen = 0;
printf("gotblockM2: error finding block %s\n",bits256_str(str,origtxdata->zblock.RO.hash2));
return;
} else printf("getblockM autoextended.[%d]\n",bp->hdrsi);
} }
} }
if ( bp == 0 ) if ( bp == 0 )

4
includes/iguana_globals.h

@ -42,9 +42,9 @@ char GLOBAL_GENESISDIR[512] = "genesis";
char GLOBAL_VALIDATEDIR[512] = "DB/purgeable"; char GLOBAL_VALIDATEDIR[512] = "DB/purgeable";
char GLOBAL_CONFSDIR[512] = "confs"; char GLOBAL_CONFSDIR[512] = "confs";
#ifdef __linux #ifdef __linux
int32_t IGUANA_NUMHELPERS = 8; int32_t IGUANA_NUMHELPERS = 4;
#else #else
int32_t IGUANA_NUMHELPERS = 2; int32_t IGUANA_NUMHELPERS = 1;
#endif #endif
#endif #endif

Loading…
Cancel
Save