package
0.1.0
Repository: https://github.com/brc20-collab/brczero.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
IsPreCheckError returns true if err is due to pre check failure.
No description provided by the author
No description provided by the author
NewCListMempool returns a new mempool with the given configuration and connection to an application.
No description provided by the author
No description provided by the author
No description provided by the author
NewOracle returns a new gasprice oracle which can recommend suitable gasprice for newly created transaction.
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.
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
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
No description provided by the author
No description provided by the author
MetricsSubsystem is a subsystem shared by all metrics exposed by this package.
No description provided by the author
UnknownPeerID is the peer ID to use when running CheckTx when there is no peer (e.g.
No description provided by the author

# Variables

ErrNoSuchTx is returned to the client if there hasn't target tx in mempool.
ErrTxInCache is returned to the client if we saw tx earlier.
GlobalRecommendedGP is initialized to 1Wei.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
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.
ErrPendingPoolAddressLimit means address sending too many txs in PendingPool.
ErrPendingPoolIsFull means PendingPool can't handle that much load.
ErrPreCheck is returned when tx is too big.
ErrTxAlreadyInPendingPool means the tx already in PendingPool.
ErrTxTooLarge means the tx is too big to be sent in a message to other peers.
--------------------------------------------------------------------------------.
GasInfo defines tx execution gas context.
No description provided by the author
No description provided by the author
Metrics contains metrics exposed by this package.
Oracle recommends gas prices based on the content of recent blocks.
No description provided by the author
Reactor handles mempool tx broadcasting amongst peers.
Result is the union of ResponseFormat and ResponseCheckTx.
SimulationResponse defines the response generated when a transaction is successfully simulated by the Baseapp.
TxInfo are parameters that get passed when attempting to add a tx to the mempool.
TxMessage is a Message containing a transaction.
No description provided by the author
No description provided by the author
WtxMessage is a Message containing a transaction.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Mempool defines the mempool interface.
Message is a message sent or received by the Reactor.
PeerState describes the state of a peer.
No description provided by the author

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