|
@ -240,9 +240,9 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) |
|
|
}*/ |
|
|
}*/ |
|
|
if ( (height= dpow_getchaintip(myinfo,&merkleroot,&blockhash,&blocktime,dp->srctx,&dp->numsrctx,src)) != dp->last.blockhash.height && height > 0 ) |
|
|
if ( (height= dpow_getchaintip(myinfo,&merkleroot,&blockhash,&blocktime,dp->srctx,&dp->numsrctx,src)) != dp->last.blockhash.height && height > 0 ) |
|
|
{ |
|
|
{ |
|
|
char str[65]; printf("[%s].%d %s %s height.%d vs last.%d\n",dp->dest,dp->SRCHEIGHT,dp->symbol,bits256_str(str,blockhash),height,dp->last.blockhash.height); |
|
|
|
|
|
if ( dp->lastheight == 0 ) |
|
|
if ( dp->lastheight == 0 ) |
|
|
dp->lastheight = height-1; |
|
|
dp->lastheight = height-1; |
|
|
|
|
|
char str[65]; printf("[%s].%d %s %s height.%d vs last.%d\n",dp->dest,dp->SRCHEIGHT,dp->symbol,bits256_str(str,blockhash),height,dp->lastheight); |
|
|
dp->SRCHEIGHT = height; |
|
|
dp->SRCHEIGHT = height; |
|
|
if ( height < dp->last.blockhash.height ) |
|
|
if ( height < dp->last.blockhash.height ) |
|
|
{ |
|
|
{ |
|
|