txlist

package
v0.0.0-...-168a7d3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTIDIsAlReadyExist = errors.New("tx hash already exist in pool")
)

Functions

This section is empty.

Types

type TxList

type TxList struct {
	// contains filtered or unexported fields
}

func NewTxList

func NewTxList(tx *im.Transaction) *TxList

func (*TxList) AddTx

func (l *TxList) AddTx(transaction *im.Transaction) error

func (*TxList) Exist

func (l *TxList) Exist(hash common.Hash) bool

func (*TxList) FrontTx

func (l *TxList) FrontTx() *im.Transaction

func (*TxList) Get

func (l *TxList) Get(hash common.Hash) *im.Transaction

func (*TxList) GetLinearTxsFromFront

func (l *TxList) GetLinearTxsFromFront() []*im.Transaction

func (*TxList) Len

func (l *TxList) Len() int

func (*TxList) PopFront

func (l *TxList) PopFront()

func (*TxList) RemoveFromTid

func (l *TxList) RemoveFromTid(tid uint64) bool

Jump to

Keyboard shortcuts

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