txcache

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTxCacheSize = 10000
	DefaultTxSetTick   = 100 * time.Millisecond
	DefaultTxSetSize   = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TxCache

type TxCache struct {
	TxSetC  chan []*types.Transaction
	RecvTxC chan *types.Transaction
	TxRespC chan *common.TxWithResp
	CloseC  chan bool
	// contains filtered or unexported fields
}

func NewTxCache

func NewTxCache(txSliceTimeout time.Duration, txSetSize uint64, logger logrus.FieldLogger) *TxCache

func (*TxCache) IsFull

func (tc *TxCache) IsFull() bool

func (*TxCache) ListenEvent

func (tc *TxCache) ListenEvent()

Jump to

Keyboard shortcuts

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