From ccda92e4af8e07b05bf817a4b4037b294b759f6f Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Wed, 6 Mar 2019 17:40:49 +0800 Subject: [PATCH] fix --- iguana/dpow/dpow_fsm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 17795c325..bc7832df1 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -632,13 +632,13 @@ void dpow_statemachinestart(void *ptr) fprintf(stderr, "rettx.%s\n", rettx); if ( desttx[0] == 0 && rettx[0] != 0 ) { - strcpy(rettx,desttx); + memcpy(desttx, rettx, strlen(rettx)+1); fprintf(stderr, "desttx.%s\n", desttx); } if ( dest_confs > 2 ) { - // tx is notarized. or it has 100+ raw confirms. - fprintf(stderr, "[%s] txid.%s is notarized or has 100 confirms\n",dp->dest, bits256_str(str,bp->desttxid)); + // tx is notarized. or it has 100+ raw confirms. Its now final and cannot be lost! + fprintf(stderr, "[%s] txid.%s is notarized or has 100 confirms.%i\n",dp->dest, bits256_str(str,bp->desttxid, dest_confs)); destnotarized = 1; } else if ( dest_confs == 0 )