package
0.6.0-alpha.1
Repository: https://github.com/astriaorg/rollkit.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

IsPreCheckError returns true if err is due to pre check failure.
NewCListMempool returns a new mempool with the given configuration and connection to an application.
No description provided by the author
NopMetrics returns no-op Metrics.
PostCheckMaxGas checks that the wanted gas is smaller or equal to the passed maxGas.
PreCheckMaxBytes checks that the size of the transaction is smaller or equal to the expected maxBytes.
PrometheusMetrics returns Metrics build using Prometheus client library.
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
MetricsSubsystem is a subsystem shared by all metrics exposed by this package.
PeerCatchupSleepIntervalMS defines how much time to sleep if a peer is behind.
UnknownPeerID is the peer ID to use when running CheckTx when there is no peer (e.g.

# Variables

ErrTxInCache is returned to the client if we saw tx earlier.

# Structs

CListMempool is an ordered in-memory pool for transactions before they are proposed in a consensus round.
ErrMempoolIsFull defines an error where CometBFT and the application cannot handle that much load.
ErrPreCheck defines an error where a transaction fails a pre-check.
ErrTxTooLarge defines an error when a transaction is too big to be sent in a message to other peers.
LRUTxCache maintains a thread-safe LRU cache of raw transactions.
MempoolTx is a transaction that successfully ran.
Metrics contains metrics exposed by this package.
NopTxCache defines a no-op raw transaction cache.
TxInfo are parameters that get passed when attempting to add a tx to the mempool.

# Interfaces

Mempool defines the mempool interface.
TxCache defines an interface for raw transaction caching in a mempool.

# Type aliases

CListMempoolOption 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.
TxKey is the fixed length array key used as an index.