[NOD-399] Fix TxGen resending coinbase transactions. (#448)

This commit is contained in:
stasatdaglabs 2019-11-04 13:04:06 +02:00 committed by Svarog
parent c88fa1492e
commit 13f06ca293

View File

@ -419,7 +419,7 @@ func applyConfirmedTransactionsAndResendNonAccepted(client *txgenClient, walletT
if isTxMatured(msgTx, *txResult.Confirmations) {
walletTx.confirmed = true
addTxOutsToUTXOSet(walletUTXOSet, msgTx)
} else if *txResult.Confirmations == 0 && !txResult.IsInMempool && blockChainHeight-maxResendDepth > walletTx.chainHeight {
} else if !msgTx.IsCoinBase() && *txResult.Confirmations == 0 && !txResult.IsInMempool && blockChainHeight-maxResendDepth > walletTx.chainHeight {
log.Infof("Transaction %s was not accepted in the DAG. Resending", txID)
txChan <- msgTx
}