# Functions
IsPreCheckError returns true if err is due to pre check failure.
NewMempool returns a new Mempool with the given configuration and connection to an application.
NewMempoolReactor returns a new MempoolReactor with the given config and mempool.
NopMetrics returns no-op Metrics.
PostCheckMaxGas checks that the wanted gas is smaller or equal to the passed maxGas.
PreCheckAminoMaxBytes checks that the size of the transaction plus the amino overhead is smaller or equal to the expected maxBytes.
PrometheusMetrics returns Metrics build using Prometheus client library.
No description provided by the author
TxID is the hex encoded hash of the bytes as a types.Tx.
WithMetrics sets the metrics.
WithPostCheck sets a filter for the mempool to reject a tx if f(tx) returns false.
WithPreCheck sets a filter for the mempool to reject a tx if f(tx) returns false.
# Constants
No description provided by the author
No description provided by the author
# Variables
ErrMempoolIsFull means Tendermint & an application can't handle that much load.
ErrTxInCache is returned to the client if we saw tx earlier.
# Structs
ErrPreCheck is returned when tx is too big.
Mempool is an ordered in-memory pool for transactions before they are proposed in a consensus round.
MempoolReactor handles mempool tx broadcasting amongst peers.
Metrics contains metrics exposed by this package.
TxMessage is a MempoolMessage containing a transaction.
# Interfaces
MempoolMessage is a message sent or received by the MempoolReactor.
PeerState describes the state of a peer.
# Type aliases
MempoolOption sets an optional parameter on the Mempool.
PostCheckFunc is an optional filter executed after CheckTx and rejects transaction if false is returned.
PreCheckFunc is an optional filter executed before CheckTx and rejects transaction if false is returned.