diff --git a/domain/miningmanager/mempool/revalidate_high_priority_transactions.go b/domain/miningmanager/mempool/revalidate_high_priority_transactions.go index 31e3ad046c..a243b4f0a5 100644 --- a/domain/miningmanager/mempool/revalidate_high_priority_transactions.go +++ b/domain/miningmanager/mempool/revalidate_high_priority_transactions.go @@ -4,6 +4,7 @@ import ( "github.com/kaspanet/kaspad/domain/consensus/model/externalapi" "github.com/kaspanet/kaspad/domain/miningmanager/mempool/model" "github.com/kaspanet/kaspad/infrastructure/logger" + "github.com/pkg/errors" ) func (mp *mempool) revalidateHighPriorityTransactions() ([]*externalapi.DomainTransaction, error) { @@ -109,6 +110,15 @@ func (mp *mempool) revalidateTransaction(transaction *model.MempoolTransaction) _, err = mp.validateAndInsertTransaction(transaction.Transaction(), false, false) if err != nil { + ruleError := TxRuleError{} + if errors.As(err, &ruleError) { + if ruleError.RejectCode == RejectDuplicate { + return true, nil + } + + log.Debugf("Validation for high priority transaction %s failed: %s", transaction.TransactionID(), err) + return false, nil + } return false, err }