package
0.0.0-20230530162105-6dcdc0ec4805
Repository: https://github.com/consideritdone/landslidecore.git
Documentation: pkg.go.dev

# Packages

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.
NewReactor returns a new Reactor 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.
PreCheckMaxBytes checks that the size of the transaction is smaller or equal to the expected maxBytes.
PrometheusMetrics returns Metrics build using Prometheus client library.
TxKey is the fixed length array hash used as the key in maps.
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
MetricsSubsystem is a subsystem shared by all metrics exposed by this package.
TxKeySize is the size of the transaction key index.
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 means Tendermint & an application can't handle that much load.
ErrPreCheck is returned when tx is too big.
ErrTxTooLarge means the tx is too big to be sent in a message to other peers.
Metrics contains metrics exposed by this package.
Reactor handles mempool tx broadcasting amongst peers.
TxInfo are parameters that get passed when attempting to add a tx to the mempool.
TxsMessage is a Message containing transactions.

# Interfaces

No description provided by the author
Mempool defines the mempool interface.
PeerState describes the state of a peer.

# 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.