diff --git a/mempool.go b/mempool.go index 3acbdeec..fac768ad 100644 --- a/mempool.go +++ b/mempool.go @@ -779,6 +779,9 @@ func (mp *txMemPool) maybeAcceptTransaction(tx *btcutil.Tx, isOrphan *bool) erro // used later. txFee, err := btcchain.CheckTransactionInputs(tx, nextBlockHeight, txStore) if err != nil { + if _, ok := err.(btcchain.RuleError); ok { + return TxRuleError(err.Error()) + } return err }