mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-399] Fix TxGen resending coinbase transactions. (#448)
This commit is contained in:
parent
c88fa1492e
commit
13f06ca293
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user