Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c3e3cf8698
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana_ramchain.c

2
iguana/iguana777.c

@ -410,7 +410,7 @@ void iguana_coinloop(void *arg)
}
else
{
if ( coin->peers.numranked != 0 && coin->peers.numranked < (coin->MAXPEERS>>1) && now > coin->lastpossible+6 )
if ( coin->peers.numranked != 0 && coin->peers.numranked < (coin->MAXPEERS>>1) && now > coin->lastpossible )
{
//fprintf(stderr,"possible\n");
coin->lastpossible = iguana_possible_peer(coin,0); // tries to connect to new peers

4
iguana/iguana_ramchain.c

@ -1338,8 +1338,8 @@ int32_t iguana_ramchain_alloc(struct iguana_info *coin,struct iguana_ramchain *r
char str[65],str2[65]; fprintf(stderr,"ht.%d wait for allocated %s < MAXMEM %s | elapsed %.2f minutes\n",height,mbstr(str,hashsize+allocsize),mbstr(str2,coin->MAXMEM),(double)(time(NULL)-coin->startutc)/60.);
sleep(3);
}
iguana_meminit(hashmem,"ramhashmem",0,hashsize,0);
iguana_meminit(mem,"ramchain",0,allocsize,0);
iguana_meminit(hashmem,"ramhashmem",0,hashsize + 8192,0);
iguana_meminit(mem,"ramchain",0,allocsize + 8192,0);
mem->alignflag = sizeof(uint32_t);
hashmem->alignflag = sizeof(uint32_t);
if ( iguana_ramchain_init(ramchain,mem,hashmem,1,numtxids,numunspents,numspends,numpkinds,numexternaltxids,scriptspace,1,numblocks) == 0 )

Loading…
Cancel
Save