Versions in this module Expand all Collapse all v0 v0.34.24 Sep 22, 2023 Changes in this version + const MaxActiveIDs + const MempoolChannel + const MetricsSubsystem + const PeerCatchupSleepIntervalMS + const UnknownPeerID + var ErrTxInCache = errors.New("tx already exists in cache") + func IsPreCheckError(err error) bool + type ErrMempoolIsFull struct + MaxTxs int + MaxTxsBytes int64 + NumTxs int + TxsBytes int64 + func (e ErrMempoolIsFull) Error() string + type ErrPreCheck struct + Reason error + func (e ErrPreCheck) Error() string + type ErrTxTooLarge struct + Actual int + Max int + func (e ErrTxTooLarge) Error() string + type LRUTxCache struct + func NewLRUTxCache(cacheSize int) *LRUTxCache + func (c *LRUTxCache) GetList() *list.List + func (c *LRUTxCache) Has(tx types.Tx) bool + func (c *LRUTxCache) Push(tx types.Tx) bool + func (c *LRUTxCache) Remove(tx types.Tx) + func (c *LRUTxCache) Reset() + type Mempool interface + CheckTx func(tx types.Tx, callback func(*abci.Response), txInfo TxInfo) error + EnableTxsAvailable func() + Flush func() + FlushAppConn func() error + Lock func() + ReapMaxBytesMaxGas func(maxBytes, maxGas int64) types.Txs + ReapMaxTxs func(max int) types.Txs + RemoveTxByKey func(txKey types.TxKey) error + Size func() int + SizeBytes func() int64 + TxsAvailable func() <-chan struct{} + Unlock func() + Update func(blockHeight int64, blockTxs types.Txs, ...) error + type Metrics struct + EvictedTxs metrics.Counter + FailedTxs metrics.Counter + RecheckTimes metrics.Counter + RejectedTxs metrics.Counter + Size metrics.Gauge + TxSizeBytes metrics.Histogram + func NopMetrics() *Metrics + func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics + type NopTxCache struct + func (NopTxCache) Has(types.Tx) bool + func (NopTxCache) Push(types.Tx) bool + func (NopTxCache) Remove(types.Tx) + func (NopTxCache) Reset() + type PostCheckFunc func(types.Tx, *abci.ResponseCheckTx) error + func PostCheckMaxGas(maxGas int64) PostCheckFunc + type PreCheckFunc func(types.Tx) error + func PreCheckMaxBytes(maxBytes int64) PreCheckFunc + type TxCache interface + Has func(tx types.Tx) bool + Push func(tx types.Tx) bool + Remove func(tx types.Tx) + Reset func() + type TxInfo struct + SenderID uint16 + SenderP2PID p2p.ID + type TxKey [sha256.Size]byte