|
|
@ -124,13 +124,15 @@ void dpow_destconfirm(struct supernet_info *myinfo,struct dpow_info *dp,struct d |
|
|
|
|
|
|
|
void dpow_destupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t height,bits256 hash,uint32_t timestamp,uint32_t blocktime) |
|
|
|
{ |
|
|
|
printf("%s destupdate ht.%d\n",dp->dest,height); |
|
|
|
dp->destupdated = timestamp; |
|
|
|
dpow_checkpointset(myinfo,&dp->destchaintip,height,hash,timestamp,blocktime); |
|
|
|
dpow_approvedset(myinfo,dp,&dp->destchaintip,dp->desttx,dp->numdesttx); |
|
|
|
dpow_fifoupdate(myinfo,dp->destfifo,dp->destchaintip); |
|
|
|
if ( strcmp(dp->dest,"BTC") == 0 ) |
|
|
|
{ |
|
|
|
printf("%s destupdate ht.%d\n",dp->dest,height); |
|
|
|
dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_BTCCONFIRMS]); |
|
|
|
} |
|
|
|
else dpow_destconfirm(myinfo,dp,&dp->destfifo[DPOW_KOMODOCONFIRMS*2]); // todo: change to notarized KMD depth
|
|
|
|
} |
|
|
|
|
|
|
|