From 650f4443ed5048f8e36e2e9aa4b066c6c500ab06 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 11 Oct 2016 23:42:50 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 69b1648da..0989d2c79 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -985,18 +985,18 @@ void dpow_statemachinestart(void *ptr) { //printf("dp->ht.%d ht.%d DEST.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,deststate,bits256_str(str,srchash.hash)); destbp->state = dpow_statemachineiterate(myinfo,dp,dest,destbp,myind); - } - if ( destbp->state == 0xffffffff ) - { - srcbp->btctxid = destbp->signedtxid; - dp->destupdated = 0; - printf("SET BTCTXID.(%s)\n",bits256_str(str,srcbp->btctxid)); + if ( destbp->state == 0xffffffff ) + { + srcbp->btctxid = destbp->signedtxid; + dp->destupdated = 0; + printf("SET BTCTXID.(%s)\n",bits256_str(str,srcbp->btctxid)); + } } if ( destbp->state == 0xffffffff ) { if ( srcbp->state != 0xffffffff ) { - printf("dp->ht.%d ht.%d SRC.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,srcbp->state,bits256_str(str,srcbp->btctxid)); + //printf("dp->ht.%d ht.%d SRC.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,srcbp->state,bits256_str(str,srcbp->btctxid)); srcbp->state = dpow_statemachineiterate(myinfo,dp,src,srcbp,myind); } }