|
@ -189,7 +189,7 @@ void dpow_destupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t h |
|
|
dpow_fifoupdate(myinfo,dp->destfifo,dp->destchaintip); |
|
|
dpow_fifoupdate(myinfo,dp->destfifo,dp->destchaintip); |
|
|
if ( strcmp(dp->dest,"BTC") == 0 ) |
|
|
if ( strcmp(dp->dest,"BTC") == 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("%s destupdate ht.%d\n",dp->dest,height); |
|
|
//printf("%s destupdate ht.%d\n",dp->dest,height);
|
|
|
dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_BTCCONFIRMS]); |
|
|
dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_BTCCONFIRMS]); |
|
|
} |
|
|
} |
|
|
else dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_KOMODOCONFIRMS*2]); // todo: change to notarized KMD depth
|
|
|
else dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_KOMODOCONFIRMS*2]); // todo: change to notarized KMD depth
|
|
@ -230,7 +230,7 @@ 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); |
|
|
//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; |
|
|
if ( height < dp->last.blockhash.height ) |
|
|
if ( height < dp->last.blockhash.height ) |
|
|