mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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) DelAllPrevZeroDataBeforeHeight

func (Mempool) DelAllPrevZeroDataBeforeHeight(height int64)

func (Mempool) DelZeroDataByBTCHeight

func (Mempool) DelZeroDataByBTCHeight(btcHeight int64)

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) GetCurrentZeroData

func (Mempool) GetCurrentZeroData() map[int64]types.ZeroData

func (Mempool) GetEnableDeleteMinGPTx

func (Mempool) GetEnableDeleteMinGPTx() bool

func (Mempool) GetPendingNonce

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

func (Mempool) GetPendingPoolTxsBytes

func (Mempool) GetPendingPoolTxsBytes() map[string]map[string]types.WrappedMempoolTx

func (Mempool) GetTxByHash

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

func (Mempool) GetTxSimulateGas

func (Mempool) GetTxSimulateGas(txHash string) int64

func (Mempool) GetUserPendingTxsCnt

func (Mempool) GetUserPendingTxsCnt(address string) int

func (Mempool) GetZeroDataByBTCHeight

func (Mempool) GetZeroDataByBTCHeight(btcHeight int64) (types.ZeroData, error)

func (Mempool) GetZeroDataMinHeight

func (Mempool) GetZeroDataMinHeight() int64

func (Mempool) InitWAL

func (Mempool) InitWAL() error

func (Mempool) Lock

func (Mempool) Lock()

func (Mempool) ReapEssentialTx

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

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

func (Mempool) SetEnableDeleteMinGPTx(enable bool)

func (Mempool) SetEventBus

func (Mempool) SetEventBus(eventBus types.TxEventPublisher)

func (Mempool) SetTxInfoParser

func (Mempool) SetTxInfoParser(_ mempl.TxInfoParser)

func (Mempool) SetZeroDataDelivered

func (Mempool) SetZeroDataDelivered(btcH int64, value bool)

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

func (Mempool) UpdateForBRCZeroData

func (Mempool) UpdateForBRCZeroData(height int64, btcHeight int64)

func (Mempool) ZeroReorgChan

func (Mempool) ZeroReorgChan() <-chan int64

Jump to

Keyboard shortcuts

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