mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-21 07:22:20 +00:00
store mempool error when full to return to rpc caller
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user