From 057b3b52217f5416f7fa8fccaf24db5e44c2cfcc Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 7 Mar 2019 17:59:31 +0800 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 3d967f3d3..e352e2a6c 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -642,7 +642,7 @@ void dpow_statemachinestart(void *ptr) if ( dest_confs > 2 ) { // tx is notarized. or it has 100+ raw confirms. Its now final and cannot be lost, no longer need to check. - fprintf(stderr, "[%s] txid.%s is notarized or has 100 confirms.%d\n",dp->dest, bits256_str(str,bp->desttxid), dest_confs); + fprintf(stderr, "[dest.%s] txid.%s is notarized. confirms.%d srcnotarized.%i\n",dp->dest, bits256_str(str,bp->desttxid), dest_confs, srcnotarized); destnotarized = 1; } else if ( dest_confs == 0 ) @@ -657,7 +657,7 @@ void dpow_statemachinestart(void *ptr) { fprintf(stderr, "[%s] Cant find tx.%s rebroadcasting...\n", dp->dest, bits256_str(str,bp->desttxid)); send_dest = 1; - } + } else fprintf(stderr, "[KMD] get raw transaction error\n"); if ( send_dest == 1 ) dpow_sendrawtransaction(myinfo, bp->destcoin, desttx); } @@ -674,7 +674,7 @@ void dpow_statemachinestart(void *ptr) } if ( src_confs > 2 ) { - fprintf(stderr, "[%s] txid.%s is notarized or has 100 confirms.%i\n", dp->symbol, bits256_str(str,bp->srctxid), src_confs); + fprintf(stderr, "[src.%s] txid.%s is notarized. confirms.%i destnotarized.%i\n", dp->symbol, bits256_str(str,bp->srctxid), src_confs, destnotarized); srcnotarized = 1; } else if ( src_confs == 0 ) @@ -688,7 +688,7 @@ void dpow_statemachinestart(void *ptr) { fprintf(stderr, "[%s] Cant find tx.%s rebroadcasting...\n", dp->symbol, bits256_str(str,bp->srctxid)); send_src = 1; - } + } else fprintf(stderr, "[%s] get raw transaction error\n", dp->symbol); if ( send_src == 1 ) dpow_sendrawtransaction(myinfo, bp->srccoin, srctx); }