package
0.0.0-20230510093534-25a7e6aa1f30
Repository: https://github.com/gridironone/gridmint.git
Documentation: pkg.go.dev
# Functions
IsPreCheckError returns true if err is due to pre check failure.
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.
# 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
ErrMempoolIsFull defines an error where Tendermint 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.
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.
# Type aliases
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.