Browse Source

try fix

blackjok3r
blackjok3r 6 years ago
parent
commit
4dd57af65b
  1. 1
      iguana/iguana_notary.c
  2. 5
      iguana/main.c

1
iguana/iguana_notary.c

@ -227,6 +227,7 @@ void dpow_destupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t h
void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp)
{
printf("dPoW updated called!\n");
int32_t height,num; uint32_t blocktime; bits256 blockhash,merkleroot; struct iguana_info *src,*dest;
//if ( strcmp(dp->symbol,"KMD") == 0 )
{

5
iguana/main.c

@ -794,7 +794,7 @@ void iguana_launchdaemons(struct supernet_info *myinfo)
iguana_launch(0,"rpcloop",iguana_rpcloop,myinfo,IGUANA_PERMTHREAD); // limit to oneprocess
printf("launch mainloop\n");
// disable basilisk: OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)DEX_explorerloop,(void *)myinfo);
//OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)jumblr_loop,(void *)myinfo);
OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)dpow_loop,(void *)myinfo);
OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)dpow_psockloop,(void *)myinfo);
mainloop(myinfo);
}
@ -2185,7 +2185,7 @@ void dpow_loop(void *arg)
endmilli = startmilli + 30;
}
}
if ( counter > 100000 )
if ( counter > 1000000 )
counter = 0;
while ( OS_milliseconds() < endmilli )
usleep(10000);
@ -2308,7 +2308,6 @@ void iguana_main(void *arg)
//iguana_helpinit(myinfo);
//iguana_relays_init(myinfo);
//basilisks_init(myinfo);
myinfo->basilisks.launched = iguana_launch(iguana_coinfind("BTCD"),"dpow_loop",dpow_loop,myinfo,IGUANA_PERMTHREAD);
#ifdef __APPLE__
iguana_appletests(myinfo);
#endif

Loading…
Cancel
Save