diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 75ae189a3..1cb3f7f85 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -616,10 +616,11 @@ void dpow_statemachinestart(void *ptr) // We need to wait for notarized confirm here. If the notarization is reorged for any reason we need to rebroadcast it, // because the mempool is stupid after the sapling update, or Alright might be playing silly games. - int8_t dest_confs = 0, src_confs = 0, destnotarized = 0, srcnotarized = 0, send_dest = 0, send_src = 0; + int8_t dest_confs = 0, src_confs = 0, destnotarized = 0, srcnotarized = 0; char desttx[32768],srctx[32768],rettx[32768]; char *retstr=0; while ( 1 ) { + int8_t send_dest = 0, send_src = 0; // If the round was sucessful and both notarizations were created successfully we will make sure they are in the chain. if ( bits256_cmp(bp->desttxid,zero) == 0 ) break; @@ -649,7 +650,10 @@ void dpow_statemachinestart(void *ptr) } } else if ( desttx[0] != 0 ) // we have the tranxation hex saved, and the tx is not in the local mempool or a block, so resend it. + { + fprintf(stderr, "cant find tx.%s rebroadcasting...\n", bits256_str(str,bp->desttxid)); send_dest = 1; + } if ( send_dest == 1 && dpow_sendrawtransaction(myinfo, bp->destcoin, desttx) == 0 ) fprintf(stderr, "rebroadcast failed!\n");