From f6b4dc3bb46dbbb48d97ca2d8ed4267b6f0b0b08 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 5 Nov 2016 15:15:08 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 2 -- iguana/iguana_notary.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 2fb8b2a55..07a86ea03 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -609,8 +609,6 @@ void dpow_statemachinestart(void *ptr) //printf("done utxosync start.%u %u\n",starttime,(uint32_t)time(NULL)); while ( time(NULL) < starttime+bp->duration && src != 0 && dest != 0 && bp->state != 0xffffffff ) { - if ( strcmp(dp->dest,"BTC") != 0 ) - dp->KMDHEIGHT = dpow_issuer_iteration(bp->srccoin,dp->KMDHEIGHT,&dp->KMDREALTIME); if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height ) { if ( bp->isratify == 0 ) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index cb497805e..a748e9850 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -143,6 +143,8 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) //printf("dp.%p dPoWupdate (%s -> %s)\n",dp,dp!=0?dp->symbol:"",dp!=0?dp->dest:""); if ( src != 0 && dest != 0 ) { + if ( strcmp(dp->dest,"BTC") != 0 ) + dp->KMDHEIGHT = dpow_issuer_iteration(src,dp->KMDHEIGHT,&dp->KMDREALTIME); dp->numdesttx = sizeof(dp->desttx)/sizeof(*dp->desttx); if ( (height= dpow_getchaintip(myinfo,&blockhash,&blocktime,dp->desttx,&dp->numdesttx,dest)) != dp->destchaintip.blockhash.height && height >= 0 ) {