mock

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mempool

type Mempool struct{}

Mempool is an empty implementation of a Mempool, useful for testing.

func (Mempool) CheckTx

func (Mempool) CheckTx(_ types.Tx, _ func(*abci.Response), _ mempl.TxInfo) error

func (Mempool) CloseWAL

func (Mempool) CloseWAL()

func (Mempool) EnableTxsAvailable

func (Mempool) EnableTxsAvailable()

func (Mempool) Flush

func (Mempool) Flush()

func (Mempool) FlushAppConn

func (Mempool) FlushAppConn() error

func (Mempool) GetAddressList

func (m Mempool) GetAddressList() []string

func (Mempool) GetConfig

func (Mempool) GetConfig() *cfg.MempoolConfig

func (Mempool) GetEnableDeleteMinGPTx added in v1.6.7

func (Mempool) GetEnableDeleteMinGPTx() bool

func (Mempool) GetPendingNonce added in v1.1.7

func (Mempool) GetPendingNonce(address string) (uint64, bool)

func (Mempool) GetTxByHash

func (m Mempool) GetTxByHash(hash [sha256.Size]byte) (types.Tx, error)

func (Mempool) GetTxSimulateGas added in v1.6.6

func (Mempool) GetTxSimulateGas(txHash string) int64

func (Mempool) GetUserPendingTxsCnt

func (Mempool) GetUserPendingTxsCnt(address string) int

func (Mempool) InitWAL

func (Mempool) InitWAL() error

func (Mempool) Lock

func (Mempool) Lock()

func (Mempool) ReapEssentialTx added in v1.2.0

func (Mempool) ReapEssentialTx(tx types.Tx) abci.TxEssentials

func (Mempool) ReapMaxBytesMaxGas

func (Mempool) ReapMaxBytesMaxGas(_, _ int64) []types.Tx

func (Mempool) ReapMaxTxs

func (Mempool) ReapMaxTxs(n int) types.Txs

func (Mempool) ReapUserTxs

func (Mempool) ReapUserTxs(address string, max int) types.Txs

func (Mempool) ReapUserTxsCnt

func (Mempool) ReapUserTxsCnt(address string) int

func (Mempool) SetAccountRetriever

func (Mempool) SetAccountRetriever(_ mempl.AccountRetriever)

func (Mempool) SetEnableDeleteMinGPTx added in v1.6.7

func (Mempool) SetEnableDeleteMinGPTx(enable bool)

func (Mempool) SetEventBus

func (Mempool) SetEventBus(eventBus types.TxEventPublisher)

func (Mempool) SetTxInfoParser

func (Mempool) SetTxInfoParser(_ mempl.TxInfoParser)

func (Mempool) Size

func (Mempool) Size() int

func (Mempool) TxsAvailable

func (Mempool) TxsAvailable() <-chan struct{}

func (Mempool) TxsBytes

func (Mempool) TxsBytes() int64

func (Mempool) TxsFront

func (Mempool) TxsFront() *clist.CElement

func (Mempool) TxsWaitChan

func (Mempool) TxsWaitChan() <-chan struct{}

func (Mempool) Unlock

func (Mempool) Unlock()

func (Mempool) Update

func (Mempool) Update(
	_ int64,
	txs types.Txs,
	deliverTxResponses []*abci.ResponseDeliverTx,
	_ mempl.PreCheckFunc,
	_ mempl.PostCheckFunc,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL