Documentation ¶
Index ¶
- Variables
- type TxList
- func (l *TxList) AddTx(transaction *im.Transaction) error
- func (l *TxList) Exist(hash common.Hash) bool
- func (l *TxList) FrontTx() *im.Transaction
- func (l *TxList) Get(hash common.Hash) *im.Transaction
- func (l *TxList) GetLinearTxsFromFront() []*im.Transaction
- func (l *TxList) Len() int
- func (l *TxList) PopFront()
- func (l *TxList) RemoveFromTid(tid uint64) bool
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) FrontTx ¶
func (l *TxList) FrontTx() *im.Transaction
func (*TxList) GetLinearTxsFromFront ¶
func (l *TxList) GetLinearTxsFromFront() []*im.Transaction
func (*TxList) RemoveFromTid ¶
Click to show internal directories.
Click to hide internal directories.