From 2507f8c253c1febc1bf2ae2385f169e8dc33f66e Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 7 Mar 2019 00:39:56 +0800 Subject: [PATCH] laziest fix --- iguana/dpow/dpow_fsm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 2d452c312..340117bc1 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -626,8 +626,11 @@ void dpow_statemachinestart(void *ptr) break; if ( bits256_cmp(bp->srctxid,zero) == 0 ) break; + // wait for approx one block before checking, gives some time to confirm, before rebroadcast. + sleep(60); // get the confirms for desttxid + memset(rettx,0,sizeof(rettx)); // zero out rettx! if ( destnotarized == 0 ) { if ( (dest_confs= dpow_txconfirms(myinfo, bp->destcoin, bp->desttxid, rettx)) != -1 ) @@ -692,8 +695,6 @@ void dpow_statemachinestart(void *ptr) fprintf(stderr, "rebroadcast failed!\n"); } - // wait for approx one block before checking again. - sleep(30); if ( destnotarized != 0 && srcnotarized != 0 ) break; }