Browse Source

Fix CHIPS notarizing

jl777
jl777 7 years ago
parent
commit
b6c7ab22c7
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 3
      iguana/iguana_notary.c

2
iguana/dpow/dpow_fsm.c

@ -401,7 +401,7 @@ void dpow_statemachinestart(void *ptr)
{
kmdheight = dest->longestchain;
//portable_mutex_lock(&myinfo->MoM_mutex);
if ( Notaries_port != DPOW_SOCKPORT )
//if ( Notaries_port != DPOW_SOCKPORT )
MoM = dpow_calcMoM(&MoMdepth,myinfo,src,checkpoint.blockhash.height);
//portable_mutex_unlock(&myinfo->MoM_mutex);
}

3
iguana/iguana_notary.c

@ -137,7 +137,7 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he
}
if ( ht > 500 )
{
if ( strcmp("CHIPS",dp->symbol) == 0 )
if ( (0) && strcmp("CHIPS",dp->symbol) == 0 )
printf("ht.%d maxblocks.%d\n",ht,dp->maxblocks);
for (i=ht-500; i>ht-10000; i--)
{
@ -148,7 +148,6 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he
free(bp);
}
}
printf("i.%d\n",i);
}
}
}

Loading…
Cancel
Save