From 719b342c1ca5d230b9e9b3deb26f9796d51bf21b Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Jul 2019 08:03:11 +0800 Subject: [PATCH] try --- iguana/dpow/dpow_fsm.c | 2 +- iguana/dpow/dpow_network.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index fc8724a6b..2fe1c60a8 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -309,7 +309,7 @@ void dpow_statemachinestart(void *ptr) bp->srccoin = src; bp->destcoin = dest; bp->myind = -1; - bp->destht_start = dp->DESTHEIGHT; + bp->destht_start = bp->destcoin->longestchain; for (i=0; inotaries)/sizeof(*bp->notaries); i++) bp->notaries[i].bestk = -1; bp->opret_symbol = dp->symbol; diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 4efa752ce..1d1558b27 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -2000,20 +2000,18 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru bp->bestmask = dpow_maskmin(bp->recvmask,bp,&bp->bestk); } - // check that block has advanced by 1 on KMD before allowing bestmask to be calculated if ( strcmp(bp->destcoin->symbol,"KMD") == 0 ) { if ( bp->destht_start == bp->destcoin->longestchain ) return; - else fprintf(stderr, "%s->KMD: checkpoint ht.%i vs longestchain.%i\n",bp->srccoin->symbol, bp->destht_start, bp->destcoin->longestchain); } else { if ( bp->height == bp->srccoin->longestchain ) return; - else fprintf(stderr, "KMD->BTC: checkpoint ht.%i vs longestchain.%i\n", bp->height , bp->srccoin->longestchain); } + fprintf(stderr, "[%s] checkpoint ht.%i vs longestchain.%i\n",bp->srccoin->symbol, bp->destht_start, bp->destcoin->longestchain); dpow_bestconsensus(dp,bp); if ( bp->bestk >= 0 )