store mempool error when full to return to rpc caller

This commit is contained in:
Callum Waters
2022-07-05 15:20:58 +02:00
parent 83526cacbc
commit ee526e8226
+2
View File
@@ -574,6 +574,7 @@ func (txmp *TxMempool) initTxCallback(wtx *WrappedTx, res *abci.Response, txInfo
"err", err.Error(),
)
txmp.metrics.RejectedTxs.Add(1)
checkTxRes.CheckTx.MempoolError = err.Error()
return
}
@@ -592,6 +593,7 @@ func (txmp *TxMempool) initTxCallback(wtx *WrappedTx, res *abci.Response, txInfo
"new_priority", wtx.priority,
)
txmp.metrics.EvictedTxs.Add(1)
}
}