jl777 8 years ago
parent
commit
f089d2d228
  1. 9
      basilisk/basilisk.c
  2. 2
      iguana/dpow/dpow_fsm.c

9
basilisk/basilisk.c

@ -906,7 +906,7 @@ void komodo_iteration(char *symbol)
void basilisks_loop(void *arg)
{
static uint32_t counter;
struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct dpow_info *dp;
struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t i,iter; double startmilli,endmilli; struct dpow_info *dp;
iter = 0;
relay = iguana_coinfind("RELAY");
printf("start basilisk loop\n");
@ -926,8 +926,11 @@ void basilisks_loop(void *arg)
iguana_dPoWupdate(myinfo,&myinfo->DPOWS[0]);
else if ( myinfo->numdpows > 1 )
{
dp = &myinfo->DPOWS[counter % myinfo->numdpows];
iguana_dPoWupdate(myinfo,dp);
for (i=0; i<myinfo->numdpows; i++)
{
dp = &myinfo->DPOWS[i];//counter % myinfo->numdpows];
iguana_dPoWupdate(myinfo,dp);
}
}
endmilli = startmilli + 200;
}

2
iguana/dpow/dpow_fsm.c

@ -609,7 +609,7 @@ void dpow_statemachinestart(void *ptr)
//printf("done utxosync start.%u %u\n",starttime,(uint32_t)time(NULL));
while ( time(NULL) < starttime+bp->duration && src != 0 && dest != 0 && bp->state != 0xffffffff )
{
sleep(2);
sleep(1);
if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height )
{
if ( bp->isratify == 0 )

Loading…
Cancel
Save