Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
362eb3e40d
  1. 6
      iguana/iguana_notary.c

6
iguana/iguana_notary.c

@ -264,22 +264,24 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp)
}
else if ( strcmp(dp->symbol,"KMD") == 0 )
{
printf("%s start dp->last.blockhash.height.%d height.%d\n",dp->symbol,dp->last.blockhash.height,height);
while ( dp->last.blockhash.height <= height )
{
blockhash = dpow_getblockhash(myinfo,src,dp->last.blockhash.height);
dpow_srcupdate(myinfo,dp,dp->last.blockhash.height++,blockhash,(uint32_t)time(NULL),blocktime);
}
printf("%s end dp->last.blockhash.height.%d height.%d\n",dp->symbol,dp->last.blockhash.height,height);
dp->lastsrcupdate = (uint32_t)time(NULL);
}
else if ( time(NULL) > dp->lastsrcupdate+60 || height != dp->last.blockhash.height )
{
printf("start dp->last.blockhash.height.%d height.%d\n",dp->last.blockhash.height,height);
printf("%s start dp->last.blockhash.height.%d height.%d\n",dp->symbol,dp->last.blockhash.height,height);
while ( dp->last.blockhash.height <= height )
{
blockhash = dpow_getblockhash(myinfo,src,dp->last.blockhash.height);
dpow_srcupdate(myinfo,dp,dp->last.blockhash.height++,blockhash,(uint32_t)time(NULL),blocktime);
}
printf("end dp->last.blockhash.height.%d height.%d\n",dp->last.blockhash.height,height);
printf("%s end dp->last.blockhash.height.%d height.%d\n",dp->symbol,dp->last.blockhash.height,height);
dp->lastsrcupdate = (uint32_t)time(NULL);
}
} //else printf("error getchaintip for %s\n",dp->symbol);

Loading…
Cancel
Save