Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
471a64afa4
  1. 2
      basilisk/basilisk.c
  2. 8
      iguana/iguana777.c

2
basilisk/basilisk.c

@ -1088,7 +1088,7 @@ void basilisk_msgprocess(struct supernet_info *myinfo,void *_addr,uint32_t sende
if ( (retstr= (*basilisk_services[i][1])(myinfo,type,addr,remoteaddr,basilisktag,valsobj,data,datalen,hash,from_basilisk)) != 0 )
{
//printf("from_basilisk.%d ret.(%s)\n",from_basilisk,retstr);
if ( from_basilisk != 0 || strcmp(CMD,"GET") == 0 )
//if ( from_basilisk != 0 || strcmp(CMD,"GET") == 0 )
basilisk_sendback(myinfo,CMD,symbol,remoteaddr,basilisktag,retstr);
if ( retstr != 0 )
free(retstr);

8
iguana/iguana777.c

@ -569,6 +569,7 @@ void iguana_helper(void *arg)
sleep(2);
while ( 1 )
{
flag = 0;
if ( (btcd= iguana_coinfind("BTCD")) != 0 )
{
if ( helperid == 0 && myinfo->numrelays > 0 && myinfo->genesisresults == 0 )
@ -576,22 +577,21 @@ void iguana_helper(void *arg)
if ( myinfo->allcoins_numvirts > 0 )
{
maxmillis = (10000 / myinfo->allcoins_numvirts) + 1;
flag = 0;
n = 0;
//portable_mutex_lock(&myinfo->allcoins_mutex);
HASH_ITER(hh,myinfo->allcoins,virt,tmp)
{
if ( virt->started != 0 && virt->active != 0 && virt->virtualchain != 0 )
{
//fprintf(stderr,"h");
if ( (flag++ % IGUANA_NUMHELPERS) == helperid )
gecko_iteration(myinfo,btcd,virt,maxmillis);
if ( (n++ % IGUANA_NUMHELPERS) == helperid )
gecko_iteration(myinfo,btcd,virt,maxmillis), flag++;
}
}
//portable_mutex_unlock(&myinfo->allcoins_mutex);
}
}
//iguana_jsonQ(); cant do this here
flag = 0;
allcurrent = 2;
polltimeout = 100;
//portable_mutex_lock(&myinfo->allcoins_mutex);

Loading…
Cancel
Save