From 362eb3e40d5b2222f01931ec03d84cd974462c36 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 18 May 2018 18:42:26 +0300 Subject: [PATCH] Test --- iguana/iguana_notary.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 1cdec30aa..1d8f63370 100755 --- a/iguana/iguana_notary.c +++ b/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);