|
|
@ -269,13 +269,16 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) |
|
|
|
blockhash = dpow_getblockhash(myinfo,src,dp->lastheight); |
|
|
|
dpow_srcupdate(myinfo,dp,dp->lastheight++,blockhash,(uint32_t)time(NULL),blocktime); |
|
|
|
} |
|
|
|
dp->lastsrcupdate = (uint32_t)time(NULL); |
|
|
|
} |
|
|
|
else if ( time(NULL) > dp->lastsrcupdate+60 || height != dp->lastheight ) |
|
|
|
{ |
|
|
|
while ( dp->lastheight <= height ) |
|
|
|
{ |
|
|
|
blockhash = dpow_getblockhash(myinfo,src,dp->lastheight); |
|
|
|
dpow_srcupdate(myinfo,dp,dp->lastheight++,blockhash,(uint32_t)time(NULL),blocktime); |
|
|
|
} |
|
|
|
dp->lastsrcupdate = (uint32_t)time(NULL); |
|
|
|
dp->lastheight = height; |
|
|
|
blockhash = dpow_getblockhash(myinfo,src,dp->lastheight); |
|
|
|
dpow_srcupdate(myinfo,dp,dp->lastheight,blockhash,(uint32_t)time(NULL),blocktime); |
|
|
|
} |
|
|
|
} //else printf("error getchaintip for %s\n",dp->symbol);
|
|
|
|
} else printf("iguana_dPoWupdate missing src.(%s) %p or dest.(%s) %p\n",dp->symbol,src,dp->dest,dest); |
|
|
|